The default installation of Ubuntu uses UTC time instead of local time to maintain the system clock. But this changes the Windows clock to UTC from local time when you reboot and this is very annoying.
Run this command to fix this issue.
jason@jason-desktop:~$ timedatectl set-local-rtc 1 --adjust-system-clock |
This will change the clock from UTC to local time.
Then, run the timedatectl command to see a warning about the local time setting.
jason@jason-desktop:~$ timedatectl Local time: Thu 2020-07-23 10:27:56 AEST Universal time: Thu 2020-07-23 00:27:56 UTC RTC time: Thu 2020-07-23 00:27:56 Time zone: Australia/Sydney (AEST, +1000) System clock synchronized: yes NTP service: active RTC in local TZ: yes Warning: The system is configured to read the RTC time in the local time zone. This mode cannot be fully supported. It will create various problems with time zone changes and daylight saving time adjustments. The RTC time is never updated, it relies on external facilities to maintain it. If at all possible, use RTC in UTC by calling 'timedatectl set-local-rtc 0'. |
But this works just fine. Now you do not need to worry about the Windows time changing when you re-boot from Linux.