Time problems when dual booting Ubuntu Linux and Windows 10

Some OS like Linux set the hardware clock to UTC.  Others like Windows use Local time.  There are several ways to work around this issue but the easiest for me is below:

Change Windows 10:



Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001


or


Make Linux use 'Local' time

To tell your Ubuntu system that the hardware clock is set to 'local' time:

Pre-Ubuntu 15.04 systems (e.g. Ubuntu 14.04 LTS):

  1. edit /etc/default/rcS
  2. add or change the following section
    # Set UTC=yes if your hardware clock is set to UTC (GMT)
    UTC=no

Ubuntu 15.04 systems and above (e.g. Ubuntu 16.04 LTS):


  1. open a terminal and execute the following command
    timedatectl set-local-rtc 1

No comments: