Dev/Linux
[Linux] Timezone 설정
흰바다제비
2022. 7. 27. 09:04
728x90
- timezone 정보 확인
timedatectl
예시
[root@localhost ~]# timedatectl
Local time: Tue 2022-06-21 20:14:24 EDT
Universal time: Wed 2022-06-22 00:14:24 UTC
RTC time: Wed 2022-06-22 00:14:25
Time zone: America/New_York (EDT, -0400)
NTP enabled: n/a
NTP synchronized: no
RTC in local TZ: no
DST active: yes
- Seoul timezone 확인
timedatectl list-timezones | grep Seoul
예시
[root@localhost ~]# timedatectl list-timezones | grep Seoul
Asia/Seoul
- Seoul로 timezone 변경
timedatectl set-timezone Asia/Seoul
적용 후 timezone 확인
[root@localhost ~]# timedatectl
Local time: Wed 2022-06-22 09:14:51 KST
Universal time: Wed 2022-06-22 00:14:51 UTC
RTC time: Wed 2022-06-22 00:14:52
Time zone: Asia/Seoul (KST, +0900)
NTP enabled: n/a
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
728x90