How To Fix Time Difference Between Ubuntu And Windows

Recently LinuxAndUbuntu reader raised an issue that he was having with his dual boot. When he restarts from Ubuntu to Windows, the time in Windows changes. Here is why it happens and how you can fix it easily from Ubuntu.

Why There Is Time Difference Between Ubuntu And Windows ?

The time in Windows changes due to the ways both systems differently stores the time in the hardware clock. Ubuntu stores the time in UTC while Windows in Local time  so when user restarts Windows any number of time, the time does not change but when the user restarts from Windows into Ubuntu and then restarts back into Windows, the hardware clock has stored the time in UTC and now Windows changes it into Local time which cause the issue.

Here Is How Time Difference Between Ubuntu And Windows Can Be Fixed

Time difference can easily be resolved by changing the time from UTC to Local in Ubuntu. To do this simply edit the “/etc/default/rcS” file and change “UTC=no” to “UTC=yes” (without quotes). Now Ubuntu will store time in hardware clock in Local time instead of UTC so there won’t be any conflictions between Ubuntu and Windows. To do this automatically, use the following command in terminal –

$ sudo sed -i ‘s/UTC=yes/UTC=no/’ /etc/default/rcS
Although setting up time in UTC is beneficial because you don’t need to change the hardware clock when moving between timezones.

Fixing Time Difference From Windows

The above was the solution to time difference from Ubuntu, now let’s see how to fix it from Windows –

First of all download the below registry file and double click it to install.


Download File

After extracting registry, run command prompt as an administrator and enter the following command –
sc config w32time start= disabled
You are done! Now reboot the system for changes to take effects.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at

Up ↑

%d bloggers like this: