Fedora hardware real-time clock setting for dual-boot with Windows
0 reputation · 14 Jun 2022, 20:16 UTC
0 reputation · 14 Jun 2022, 20:16 UTC
The goal is to maintain consistent wall‑clock times when Fedora and Windows share the same machine.
Fedora’s default configuration keeps the hardware real‑time clock (RTC) in UTC, while Windows expects the RTC to store local time. This mismatch leads to incorrect time display after booting the other OS, and the decision of which RTC mode to adopt remains unresolved for dual‑boot scenarios. The interaction with NTP synchronization, daylight‑saving transitions, and containerized workloads adds further uncertainty about the appropriate policy.
What are the implications of changing the RTC mode with timedatectl set-local-rtc 1 on NTP‑driven clock stability?
How should administrators verify that both operating systems show the same time after each boot without manual correction?
Is there a recommended fallback strategy for systems that occasionally boot Windows only?
To maintain consistent wall-clock times between Fedora and Windows, you must ensure both operating systems interpret the hardware real-time clock (RTC) using the same standard. By default, Fedora uses UTC, while Windows uses Local Time.
Executing timedatectl set-local-rtc 1 instructs Fedora to treat the hardware clock as local time. While the system clock continues to be disciplined by NTP (via chronyd) during active sessions, the implications are as follows:
To verify that both operating systems are synchronized without manual intervention, follow these steps:
timedatectl set-local-rtc 1timedatectl --no-pager (Confirm RTC in local TZ: yes).date command, and shut down.If you boot into Windows only occasionally, the most stable approach is to keep Fedora in its native UTC mode and modify the Windows Registry to support UTC. This avoids the DST ambiguities inherent in local RTC mode.
However, if you prefer not to modify the Windows Registry, the timedatectl set-local-rtc 1 command is the standard fallback. It ensures Windows—the more rigid of the two regarding RTC expectations—remains undisturbed.
Diagnostic Detail Required: Are you using Windows "Fast Startup"? If enabled, Windows may not write the final system time to the RTC during shutdown, which can lead to persistent offsets regardless of the timedatectl setting.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.