Anyone who lives in a country that observes daylight saving and dual boots their Kubuntu with Windows knows how much of a pain it is to get both OSes to show the same time in their clocks, as one defaults to the hardware clock (BIOS/UEFI) being UTC based, and one being Localtime based.
You used to fix (read: intentionally break(*)) this in Kubuntu by adding UTC=no in /etc/defailt/rcS.
However, `man rcS` tells us:
So now make sure your time is correct (whose idea was it to not include ntp/ntpdate in the OS by default anyway?) and use the following command to set the hardware clock to the (intentionally wrong(*)) time and know that you're using Localtime:
And that ought to do it.
(*) It's a hardware clock, people. You should never change its setting to local. That's what software is for. But Windows is broken and even if you set the registry to use UTC it won't do it.
You used to fix (read: intentionally break(*)) this in Kubuntu by adding UTC=no in /etc/defailt/rcS.
However, `man rcS` tells us:
Code:
NOTE The EDITMOTD, RAMRUN and UTC variables are no longer used. The UTC setting is replaced by the UTC or LOCAL setting in /etc/adjtime, and should have been migrated automatically. See hwclock(5) and hwclock(8) for further details on configuring the system clock.
Code:
sudo hwclock --systohc --localtime
(*) It's a hardware clock, people. You should never change its setting to local. That's what software is for. But Windows is broken and even if you set the registry to use UTC it won't do it.
Comment