1

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?

Zanna
  • 70,465
  • 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 Answers1

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:

  1. sudo timedatectl set-local-rtc 0 # Use UTC
  2. sudo timedatectl set-local-rtc 1 # Do *not* use UTC

Alternatively, you can tell Windows that the hardware clock will be UTC:

  1. Windows 7
  2. Windows 10

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