On my PC & Laptop I have a dual boot between Windows 10 & Ubuntu. Whenever I go into Ubuntu and then reset into Windows 10, Windows time jumps a few hours forward. Is there any fix for this?
Asked
Active
Viewed 4,838 times
1
-
One of your OSs (probably Windows) thinks the hardware clock is keeping local time. The other OS thinks the hardware clock is on UTC+0, and adjusts for your timezone when displaying the time. Ensure both OSs have the same view of what time the hardware clock is keeping. – user4556274 Jan 08 '17 at 23:29
1 Answers
3
This is most likely caused by the fact that most Linux distributions set the hardware clock (BIOS) to UTC. Using your locale, the system determines the local time. This is the default and recommended setup.
On a Windows system, the hardware clock is set to the local time. This will cause conflicts when dual-booting between Linux and Windows.
One solution is to tell Ubuntu to behave like Windows. You can adjust this by editing /etc/default/rcS
:
UTC=no
Another solution is to use timedatectl
to acomplish this:
sudo timedatectl set-local-rtc 0 # Use UTC
sudo timedatectl set-local-rtc 1 # Do *not* use UTC
Alternatively, you can tell Windows that the hardware clock will be UTC:
I'd say to tell Windows how to act 'correctly', but in reality, you should leave your main OS as-is, and make your secondary OS conform to how the main OS acts.

earthmeLon
- 11,247
-
-
In that case, use
timedatectl
. I've added some information from this answer. – earthmeLon Jan 09 '17 at 02:42 -
Alright I set it to 1 now I will reply back the next time I go to Windows – MrRandomMan Jan 09 '17 at 21:38