CB1
CB1 copied to clipboard
The Local time and RTC time are different when using the timedatectl command
Is there any RTC hardware issue or this is normal behavior?
[root@localhost RTC]# timedatectl
Local time: Wed 2024-07-31 00:20:55 UTC
Universal time: Wed 2024-07-31 00:20:55 UTC
RTC time: Wed 2024-07-31 00:20:56
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
[root@localhost RTC]# timedatectl
Local time: Wed 2024-07-31 00:20:57 UTC
Universal time: Wed 2024-07-31 00:20:57 UTC
RTC time: Wed 2024-07-31 00:20:57
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
[root@localhost RTC]# timedatectl
Local time: Wed 2024-07-31 00:20:57 UTC
Universal time: Wed 2024-07-31 00:20:57 UTC
RTC time: Wed 2024-07-31 00:20:58
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
Install Chrony and it will sync.
sudo apt install chrony
Is there any RTC hardware issue or this is normal behavior?
[root@localhost RTC]# timedatectl Local time: Wed 2024-07-31 00:20:55 UTC Universal time: Wed 2024-07-31 00:20:55 UTC RTC time: Wed 2024-07-31 00:20:56 Time zone: UTC (UTC, +0000) System clock synchronized: no NTP service: inactive RTC in local TZ: no [root@localhost RTC]# timedatectl Local time: Wed 2024-07-31 00:20:57 UTC Universal time: Wed 2024-07-31 00:20:57 UTC RTC time: Wed 2024-07-31 00:20:57 Time zone: UTC (UTC, +0000) System clock synchronized: no NTP service: inactive RTC in local TZ: no [root@localhost RTC]# timedatectl Local time: Wed 2024-07-31 00:20:57 UTC Universal time: Wed 2024-07-31 00:20:57 UTC RTC time: Wed 2024-07-31 00:20:58 Time zone: UTC (UTC, +0000) System clock synchronized: no NTP service: inactive RTC in local TZ: no
Your RTC is not set to synchronize and to not set local time. It's working as configured.
Yes timedatectl set-local-rtc 1 --adjust-system-clock to set RTC to adjust the local time for the system clock.