Linux Time zone

Linux 가 Sleep 상태가 되었다가 다시 돌아오면 항상 시간이 9시간 정도 어긋난것을 자주 보았다. 아마도 timezone에 관한 문제 인것 같은데 확실한 해결법은 찾지 못했다.

최근 timedatectl 을 써보니 다음과 같이 error message 가 나와서 시키는 데로 해보았다. 이후 Sleep을 다녀와도 제대로 되는 것 같다.

[bluemir@x1-bluemir-me:~]$ timedatectl 
                      Local time: 토 2018-10-27 05:11:39 KST
                  Universal time: 금 2018-10-26 20:11:39 UTC
                        RTC time: 토 2018-10-27 05:11:39
                       Time zone: Asia/Seoul (KST, +0900)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.
[bluemir@x1-bluemir-me:~]$ timedatectl set-local-rtc 0

https://docs.fedoraproject.org/en-US/fedora/f28/system-administrators-guide/basic-system-configuration/Configuring_the_Date_and_Time/