본문 바로가기

Ubuntu

[Ubuntu] 서버 Time Zone 설정 확인 및 한국 시각으로 변경하기

현재 설정된 Time Zone 확인

$ timedatectl

               Local time: Wed 2023-09-20 05:12:51 UTC
           Universal time: Wed 2023-09-20 05:12:51 UTC
                 RTC time: Wed 2023-09-20 05:12:51
                Time zone: Etc/UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

한국 시각(KST)로 Time Zone 변경

$ sudo timedatectl set-timezone Asia/Seoul

Time Zone의 현재 설정을 확인하면, KST 기준으로 변경된 것을 확인할 수 있다.

$ timedatectl

               Local time: Wed 2023-09-20 14:18:48 KST
           Universal time: Wed 2023-09-20 05:18:48 UTC
                 RTC time: Wed 2023-09-20 05:18:48
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no