When we have installed both Windows and Ubuntu Linux as dual boot systems, we may notice that the system clock shows the different times when switching between the operating systems.
Why does Windows show a different time when we switch from Ubuntu?
The reason behind this is, Ubuntu takes the time in BIOS as UTC zone, then calculates local time based on the time zone set in the Operating system.
But, Windows takes the time stored in BIOS as Local time and shows to the user without re-calculating based on the time zone set in the Operating system.
What’s the solution?
To fix either Windows or Ubuntu Linux.
To fix Windows :
- Open run prompt (Win key + R)
- Type regedit
- Now traverse to the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
- Create a new DWORD with name “RealTimeIsUniversal” and set value to 1
To fix Ubuntu :
Open terminal and execute the following command
timedatectl set-local-rtc 1