Many people use a dual boot setup on their primary or secondary PC. I use both Ubuntu and Windows 10 via a dual boot setup. Ubuntu, like many other non-windows operating systems, supports dual-booting because they have to. Windows 10, on the other hand, usually ships with settings that are not optimal for dual boot setups. This creates a minor problem: Windows displays the wrong time when you switch from Ubuntu to Windows 10 and 11. Fortunately, there’s an easy way to fix the time difference between Windows 10 and Ubuntu in a dual boot setup.

Table of Content

Why does it happen?

This happens because Ubuntu stores time on the hardware clock as UTC (Coordinated Universal Time) by default. Windows 10, and even prior versions store the time as local time. Sometimes, but not always, this causes conflicting times between Ubuntu and Windows. So as long as you’re only rebooting to Windows the clock will work fine. Once you’ve booted Ubuntu, it writes the UTC on the hardware clock. When you reboot to Windows, the time will be off by the exact amount as your local time differs from UTC. For example, the UTC in India is UTC+5:30 so when the time in Windows 10 is off, it’s always 5 hours and 30 minutes behind the actual time.

Don’t Miss: The Most Amazing Websites on the Internet (300+)

Fixing Time Difference in a Dual Boot Setup

This is just one of the few minor problems you may encounter in a dual-boot setup. Now that we know the cause, we can easily fix the time between Windows 10 and Ubuntu by making Ubuntu use local time or making Windows 10 use the UTC. There are a couple of ways to do this. You can use either of the operating systems to do this.

 Disable UTC and use Local Time in Ubuntu (Not recommended)

Note: According to Ubuntu wiki, “the advantage of having the hardware clock as UTC is that you don’t need to change the hardware clock when moving between time zones or when Daylight Savings Time (DST) begins or ends as UTC does not have DST or timezone offsets“. We’d recommend that you shouldn’t use this method especially if you live in a place that uses Daylight Savings. It should be fine if you live in a country like India, yet we’d recommend that you use the second method. That is, fix this from Windows instead.

For Ubuntu 16.04 and newer, execute the following command in a terminal.

timedatectl set-local-rtc 1

This will change the required setting and you can see if it worked using the following command.

timedatectl Dual boot time difference fix

You’ll see a bunch of lines as the output, but you have to look for the line that says, “RTC in local TZ: yes”. You will also see a warning message that begins with “The system is configured to read the RTC time in the local time zone.” Further lines will warn you of the disadvantages of doing this.

For Ubuntu versions older than 16.04, you’ll be required to edit the config file /etc/default/rcS and change “UTC=no” to “UTC=yes” (without quotes). This can be done using a simple command in the Terminal.

sudo sed -i 's/UTC=yes/UTC=no/' /etc/default/rcS

You will be required to enter your password since the file is located in the root directory and you’re using a root command to modify it. After executing this command you’ll have to reboot your system for the changes to take effect.

5 Ways to Restore Deleted Contacts on Android

Make Windows 10 use UTC (recommended)

Whereas changing Ubuntu to use local time instead of UTC had disadvantages, making Windows 10 use the UTC will only bring the advantages of using UTC. This is why this is the recommended method. Download the registry file from the link below and double-click on it to run the file. Click Run on the dialog box and confirm your actions if asked to.

Download WindowsTimeFixUTC

Even with the registry fix, Windows will continue to write local time. You’ll now need to launch a command prompt window as an administrator and execute the following command.

sc config w32time start= disabled

windows time fix
You can copy the command and right-click in the command prompt to paste it. Reboot your system once done.

Read Next: How to Enable God Mode Folder in Windows 10/11

Was this Article helpful?
YesNo