2022년 1월 28일 금요일

ETC - AWS ubuntu time zone change

1.check current time
========================
ubuntu@$ date
Tue Jan 25 16:03:58 UTC 2022


2.search time zone to available
========================
ubuntu@$ timedatectl list-timezones | grep Seoul
Asia/Seoul


3.timezone change using sudo
========================
ubuntu@$ sudo timedatectl set-timezone Asia/Seoul


4.check current time
========================
ubuntu@$ date
Wed Jan 26 01:06:02 KST 2022


5.check current time
========================
ubuntu@$ timedatectl

Local time: Wed 2022-01-26 01:06:26 KST
Universal time: Tue 2022-01-25 16:06:26 UTC
RTC time: Tue 2022-01-25 16:06:27
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no

댓글 없음:

댓글 쓰기