https://weibo.com/1649763572/PpvgGsC19
Incorrect system time after suspending
Apr 2023
when i start my system (hp spectre x360) after suspension. the system time is usually incorrect. i’ve recently reinstalled my system, after this reinstall it started showing this behaviour which it didnt before.
If i run sudo hwclock -s the time gets corrected until i suspend again. if automatic time sync and automatic timezone are on this behaviour still occurs.
edit: i’m not 100% certain this only happens after a system suspends or if it always happens. but but after a start after suspension is usually when i notice it
https://discussion.fedoraproject.org/t/incorrect-system-time-after-suspending/81056
执行sudo hwclock -s命令也可以模拟笔记本合上盖子再打开的过程,可立即复现该bug。
sudo hwclock -s命令用于将硬件时钟RTC的时间同步到系统时钟,即读取主板上的硬件时钟时间并设置为操作系统的时间。该命令等价于sudo hwclock --hctosys。
oct1158@fedora:~/Documents$ timedatectl
Local time: Wed 2026-01-07 14:47:19 CST
Universal time: Wed 2026-01-07 06:47:19 UTC
RTC time: Wed 2026-01-07 14:47:19
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
oct1158@fedora:~/Documents$ sudo hwclock -s
oct1158@fedora:~/Documents$ timedatectl
Local time: Wed 2026-01-07 22:47:26 CST
Universal time: Wed 2026-01-07 14:47:26 UTC
RTC time: Wed 2026-01-07 14:47:26
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
NTP service: inactive
RTC in local TZ: no
oct1158@fedora:~/Documents$ sudo hwclock -r
2026-01-07 22:49:16.122097+08:00
oct1158@fedora:~/Documents$



合上笔记本盖子后再打开,fedora会自动将bios硬件时间读回系统,所以系统时间就出错了。