Originally Posted by
CatKiller
Both Windows and Linux set the hardware clock to a time that they retrieve from the Internet, since the hardware clock is terrible at keeping time.
Windows sets the hardware clock to local time. Everything else sets the clock to UTC and converts to local time. The difference between UTC and local time, for you, in the summer, is one hour; hence the disparity.
It's just editing a text file to make Ubuntu use local time for the hardware clock instead. I can't remember which text file, since I haven't used Windows in over a decade.
+1
In Ubuntu releases that use systemd the command to change time to local and update the clock right away is
Code:
timedatectl set-local-rtc 1 --adjust-system-clock
If you run timedatectl, it will show a warning
Code:
Warning: The system is configured to read the RTC time in the local time zone.
This mode can not 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'.
This warning doesn't mean that it is set to 0, it suggests a command to switch it back to RTC.(FWIW)
Bookmarks