Guide | How To Fix Windows and Linux Showing Different Times When Dual Booting

The associated guide may contain user-generated or external content.


Level 79
Thread author
Honorary Member
Top Poster
Content Creator
Apr 24, 2016


  • Your computer's hardware clock stores the time, even when the computer is off. Windows assumes local time, while Linux assumes UTC time, causing time discrepancies in dual boot situations.
  • To make Linux use local time run "timedatectl set-local-rtc 1 --adjust-system-clock" in the Terminal.
  • To make Windows use UTC, disable "Set Time Automatically" in the Settings App, or you can modify the registry.

Make Linux Use Local Time to Fix Time Discrepancy​

Making Linux use local time the same way Windows does is probably the best option. Windows does have a registry setting that forces it to store the time as UTC, but it reportedly isn't well supported and can cause problems with some third-party applications that always assume the hardware clock is in local time. It's also incompatible with Windows' own Internet time-syncing service.

The steps to make your Linux system use local time can vary from Linux distribution to Linux distribution. However, on any Linux distribution with systemd, you can use the timedatectl command to make this change. This will work on modern versions of Ubuntu, Fedora, Red Hat, Debian, Mint, and other Linux distributions that use systemd.

To make this change, first open a Terminal window on your Linux system. Run the following command to put the real time clock on the motherboard into local time. Linux will store the time in local time, just like Windows does.

timedatectl set-local-rtc 1 --adjust-system-clock

You will not get any feedback after you execute the command. To check your current settings, run:


If you see "RTC in local TZ: yes", Linux is set to use the local time zone instead of UTC. The command warns you that this mode is not fully supported and can cause some problems when changing between time zones and with daylight savings time. However, this mode is probably better supported than the UTC option in Windows. If you dual-boot with Windows, Windows will handle daylight savings time for you.

If you ever want to undo this change, run the following command:

timedatectl set-local-rtc 0 --adjust-system-clock

Make Windows Use UTC Time to Fix Time Errors​

Making Windows use UTC time like Linux is probably not the best option. You can edit the registry to make Windows use UTC time, but this could potentially cause more problems than just making Linux use local time.

If you do want to do this, you'll first want to disable the Internet time updating feature on Windows. This ensures Windows won't set the clock incorrectly when trying to sync the current time from the Internet. On Windows 10, head to Settings > Time & language and disable "Set time automatically". On Windows 7, right-click the system clock in the taskbar and select "Adjust date/time". Click the "Internet Time" tab, click the "Change Settings" button, uncheck the "Synchronize with an Internet time server" option, and click "OK".

Make Windows Use UTC Time By Editing the Registry​

You will now need to add the appropriate value to the Windows registry. Here's our standard warning: The Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty easy hack and you shouldn’t have any problems as long as you follow the instructions. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.

First, open the Registry Editor by clicking Start, typing "regedit", and pressing Enter. Agree to the security prompt that appears.

Navigate to the following key in the left pane of the registry editor:


On Windows 10 and Windows 11, you can copy and paste the above line into the address box. However, this hack will work on older versions of Windows as well.

Right-click the "TimeZoneInformation" key and select New > DWORD (32-bit) Value.

Name your new value RealTimeIsUniversal.

Double-click the RealTimeIsUniversal value you just created, set is value data to 1, and click "OK".

You're now done, and you can close the Registry Editor. Windows will store the time in UTC, just like Linux does.

If you ever want to undo this change, return to this location in the registry, right-click the RealTimeIsUniversal value you added, and delete it from your registry.

Why Does Windows Use Local Time instead of UTC?​

In short, it was to preserve backwards compatibility with Windows 3.1 systems and to prevent people from getting confused when they set the time in the computer's BIOS. Of course, PC manufacturers chose local time to be compatible with Windows and Windows chose local time to be compatible with the decision PC manufacturers chose, so the cycle became self-reinforcing.

There's currently no standard for labeling whether a time is stored as UTC or local time in BIOS or UEFI firmware, which would probably be the most logical solution. But it would require some work, and most people will never even notice different operating systems use different time formats — except in dual-boot configurations.

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.