Problem Description
When I use the ntp client to synchronize the time from the server
ntpdate -u 192.168.10.123
4 Nov 07:30:19 ntpdate[19570]: adjust time server 192.168.10.123 offset -0.000112 sec
According to the log, the synchronization is successful, but the time zone is obviously wrong, with a difference of 12 hours
Solution
First specify the time zone by the command asAsia/Shanghai
timedatectl set-timezone Asia/Shanghai
sync time again
ntpdate -u 192.168.10.123
4 Nov 19:43:21 ntpdate[19744]: adjust time server 192.168.10.123 offset -0.000637 sec
right this time