Tips&Tricks Keeping Windows and Linux clocks in sync on dual boot systems
Keeping Windows and Linux clocks in sync on dual boot systems
If you have a dual boot system with Windows and Linux, you may have noticed that the clocks in both operating systems can get out of sync. This is because Windows and Linux handle the hardware clock differently. By default, Windows assumes that the hardware clock is set to local time, while Linux assumes it is set to UTC (Coordinated Universal Time). This can lead to issues where the time in one operating system is incorrect when you switch to the other.
The easiest approach is to tell the Linux system that the hardware clock is set to ’local’ time. This way, both Windows and Linux will be in sync with each other.
Make Linux use ‘Local’ time
IMPORTANT: The original information comes from this post: https://askubuntu.com/a/169384
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)
- edit
/etc/default/rcS - 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)
- open a terminal and execute the following command
timedatectl set-local-rtc 1