I'm having a weird issue that just happened in the past few months. When waking up my computer, the date time would jump back and forth between the right datetime and 2033-09-26 11:56:24
. When I check timedatectl, it shows:
$ timedatectl
Local time: Wed 2023-02-08 09:56:25 CST
Universal time: Wed 2023-02-08 15:56:25 UTC
RTC time: Mon 2033-09-26 11:56:24
Time zone: America/Chicago (CST, -0600)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Does anyone have any idea why this is happening? Is my CMOS battery dead and causing this issue? My computer is approaching the 10 year mark. The only other change is upgrading Ubuntu incrementally every couple of years. This originally ran 14.04; now I am on 22.04.
===== Update =====
This is happening while the computer is on - not just when the computer is off.
I manually reset the RTC time with:
$ sudo hwclock --systohc
but then I check the time over a period of a few seconds and the clock is going back and forth between the proper time and 2033.
$ sudo hwclock
2023-02-08 10:15:37.027724-06:00
$ sudo hwclock
2033-09-26 07:15:42.042271-05:00
$ sudo hwclock
2033-09-26 07:15:45.038469-05:00
$ sudo hwclock
2033-09-26 07:15:46.014742-05:00
$ sudo hwclock
2023-02-08 10:15:50.968213-06:00
$ sudo hwclock
2033-09-26 07:17:36.038353-05:00
$ sudo hwclock
2023-02-08 10:19:07.968234-06:00
Does the CMOS battery affect RTC even when the computer is on?