Re: [bugreport] "hwclock -w" reset time instead of setting the right time

From: Mikhail Gavrilov
Date: Sat Jan 04 2020 - 03:26:04 EST

On Sat, 4 Jan 2020 at 10:46, Jinke Fan <fanjinke@xxxxxxxx> wrote:
> Hi Mike,
> The root cause of the bug you encountered is unclear.

=== cutted ===

> There is no date reset found in the bios after reboot.
> The first time during OS startup get date from rtc_cmos is:
> [ 1.589157] rtc_cmos 00:03: setting system clock to
> 2020-01-04T04:07:01 UTC (1578110821)

> I watched the video on youtube. The date is reseted when startup into
> bios at Mike's platform.
> As we know that the bios will check the validity of rtc time, if not,
> bios will reset the rtc time. RTC time reset may be done by the BIOS.

Did you disable automatic time synchronization?
By default Fedora GNOME doing automatic time synchronization.
For this reason, itâs more correct to immediately go into the BIOS
after a reboot and there check the time value or turn off automatic
time synchronization

Best Regards,
Mike Gavrilov.