How To Fix Incorrect Windows Time In Linux DualBoot

Hello everyone!

The main problem is the Windows time, which never matches the Linux time. When we turn off the computer, the operating systems store the time in the hardware clock located on the motherboard.

Linux stores the time in UTC format, while Windows stores it in local time format. This causes time offsets when switching between operating systems. There is usually a time offset of 2 hours.

To solve this problem and to synchronize the time between Windows and Linux on a dualboot computer there are several ways to do it, we are going to show one of them.
**We always try to touch the operating system we use the least, we will make the changes in Windows. Linux is our main system and we should leave the standard configuration.**

Step 1: Make sure that the BIOS time is in UTC format. To make sure, go to this website. If we do not have it in UTC format, we set it.

Step 2: We started Windows and we pressed the keys Win+R. A window will appear, type regedit and accept.

 

Step 3: The Windows registry editor opens. We will go navigating until arriving at the following location:

HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> TimeZoneInformation

Once we are in the exact route, we do the following:

  • Right button on the right side.

  • Click on New.

  • Select the DWORD Value (32 bits) option.

  • We will see that an entry New value #1 has been created in the registry. Select the entry and press F2 to edit. Change the name to RealTimeIsUniversal .

  • Double click on the entry created and assign the value 1 and accept.


After performing these steps we will be able to change the operating system whenever we want and the time will be displayed correctly.

**To reset the changes we have to modify the value of the RealTimeIsUniversal entry. If the value of the entry is 0 Windows will return to work with the local time **.

 How To Fix Incorrect Windows Time In Linux DualBoot
Eusebio Giner Slimbook
31 August, 2023
share
archive