When I use CentOS 7 and change localtime by command:
#timedatectl list-timezones #timedatectl set-timezone Asia/Phnom_Penh and the time show as below: [root@linux ~]# timedatectl Local time: Wed 2017-05-17 11:25:12 +07 Universal time: Wed 2017-05-17 04:25:12 UTC RTC time: Wed 2017-05-17 04:25:12 Time zone: Asia/Phnom_Penh (+07, +0700) NTP enabled: no NTP synchronized: no RTC in local TZ: no DST active: n/a
but the real time in local country is Wed 2017-05-17 10:25:12 +07
I was found that I did not install chrony service.
# yum install -y chrony #systemctl start chronyd #systemctl chronyd
after that I get the real time fit system and local country time as below command
[root@linux ~]# timedatectl Local time: Wed 2017-05-17 11:25:12 +07 Universal time: Wed 2017-05-17 04:25:12 UTC RTC time: Wed 2017-05-17 04:25:12 Time zone: Asia/Phnom_Penh (+07, +0700) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a
I hope this shared help you all.