Tuxedo Nano Pro

Last modified by Alexandru Pentilescu on 2024/07/27 20:18

Incorrect system clock in Arch Linux

When using Arch Linux with the Tuxedo Nano Pro, there's a chance that the way the motherboard BIOS is configured, the Arch system makes the assumption that the BIOS clock is in GMT standard time, even though the BIOS clock is set to local time.

This, in combination with setting a specific time zone in the Arch configuration files (i.e. GMT+3 in my case), may cause the system to assume a local time into the future, because it assumes that the BIOS clock is in the GMT timezone and, due to this, it adds 3 hours to it to calculate the local time, when, in fact, the BIOS clock is in the GMT+3 timezone (aka the Romanian timezone), so it adding 3 hours to this time will cause the clock to assume its 3 hours into the future than what it actually is.

You'll find this out if you check the peer2pool service log, which will report that the system clock is incorrect.

Solution

Use the following bash command to tell the system that the BIOS clock is in the local time zone, rather than GMT:

timedatectl set-local-rtc 1

BEWARE: the above command will cause the system to change its BIOS clock to the current incorrect date and time, so you might have to reset the BIOS clock afterwards to the correct time again.