Time Settings on a Dual-Boot Computer
When dual-booting Windows 7 and Ubuntu 16.04 on a computer, there is conflict in time settings because of the way the two operating systems set the hardware clock. By default Ubuntu uses UTC while Windows uses local time.
So when you shut down the computer, the hardware clock is set to, say, “13:00”. When you reboot, Windows sees “13:00” as local time but Ubuntu sees that as UTC and so converts the time back from UTC to local time. You can fix this by either asking windows to set the hardware clock with UTC, or Ubuntu to use local time.
To make the change in Ubuntu
You can set the hardware clock time standard through the command line. You can check what you have set to use by:
$ timedatectl | grep local |
The hardware clock can be queried and set with the timedatectl command. To change the hardware clock time standard to local time, use:
# timedatectl set-local-rtc 1 |
If you want to revert to the hardware clock being in UTC, do:
# timedatectl set-local-rtc 0 |