When dual booting between Fedora and Windows, you may encounter an issue where the system time resets or appears incorrect when switching between the two operating systems. This is often due to Windows using local time for the hardware clock (RTC), while Linux typically uses UTC.
To fix this issue, you can configure Fedora to use local time for the hardware clock. Follow these steps:
Fix Windows Time Settings
- Open the Registry Editor by pressing
Win + R, typingregedit, and pressing Enter. - Navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation - Right-click on the right pane, select
New > DWORD (32-bit) Value, and name itRealTimeIsUniversal. - Double-click on
RealTimeIsUniversaland set its value to1. - Close the Registry Editor and restart your computer.
Configure Fedora to Use Local Time
bash
1timedatectl set-local-rtc 1 --adjust-system-clockThis command tells Fedora to treat the hardware clock as local time.