I have a Centos machine with version 7. I am trying to change the system time using the timedatectl
command. The time gets changed but after a few seconds it gets reset back to it's original time.
[root@abcd ~]# timedatectl
Local time: Tue 2018-10-16 05:51:30 UTC
Universal time: Tue 2018-10-16 05:51:30 UTC
RTC time: Wed 2019-10-16 03:40:38
Time zone: UTC (UTC, +0000)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@abcd ~]#
[root@abcd ~]# timedatectl set-time "2019-10-16 05:51:30"
[root@abcd ~]# timedatectl
Local time: Wed 2019-10-16 05:51:32 UTC
Universal time: Wed 2019-10-16 05:51:32 UTC
RTC time: Wed 2019-10-16 05:51:33
Time zone: UTC (UTC, +0000)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@abcd ~]# timedatectl
Local time: Tue 2018-10-16 05:54:38 UTC
Universal time: Tue 2018-10-16 05:54:38 UTC
RTC time: Wed 2019-10-16 05:52:35
Time zone: UTC (UTC, +0000)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a
[root@abcd ~]#
When I check the systemd
logs using journalctl -f
command, I notice that there is a process which is changing the system time to UTC after 80 sec approximately. I have no clue what this process is. Those logs are
Oct 16 06:01:39 abcd systemd[1]: Time has been changed
Oct 16 06:02:58 abcd systemd[1]: Time has been changed
How do I debug this ?