You are not logged in.

#1 2024-01-22 13:55:36

simon_kungen
Member
Registered: 2024-01-22
Posts: 4

Time offset by +1 hour after bios (UEFI) update

Hey.

After updating my bios (UEFI) the time on my clock widget is off by +1 hour. Doing timedatectl shows that my 'Local time' is wrong while 'Universal time' and 'RTC time' is correct.

    Local time: Mon 2024-01-22 15:28:16 CET
Universal time: Mon 2024-01-22 14:28:16 UTC
      RTC time: Mon 2024-01-22 14:28:17

It also writes:

System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: no

The bios' date and time are correct.

I do not know if it was like that before updating, but is it supposed to say 'no' and 'inactive' for those fields?

Windows on the same PC also showed the incorrect time until I synced to the server again.

Last edited by simon_kungen (2024-01-22 13:58:44)

Offline

#2 2024-01-22 14:10:47

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Time offset by +1 hour after bios (UEFI) update

Perhaps have a look at this: https://wiki.archlinux.org/title/System_time
https://wiki.archlinux.org/title/Networ … emon#Usage
Generally System Clock Synchronized should say Yes. ntp is optional.

Last edited by d_fajardo (2024-01-22 14:23:05)

Offline

#3 2024-01-22 14:29:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,048

Re: Time offset by +1 hour after bios (UEFI) update

https://wiki.archlinux.org/title/Dual_b … e_standard
Also 3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.

Offline

#4 2024-01-22 18:40:10

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Time offset by +1 hour after bios (UEFI) update

simon_kungen wrote:

I do not know if it was like that before updating, but is it supposed to say 'no' and 'inactive' for those fields?

To synchronise the system clock and enable NTP use

# timedatectl set-ntp true
# hwclock --systohc

Make sure the time is correct before running the second command.

Which guide did you follow when installing Arch? The `hwclock` command is listed in the official guide.


Jin, Jîyan, Azadî

Offline

#5 2024-01-23 20:21:40

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,096

Re: Time offset by +1 hour after bios (UEFI) update

To synchronise the system clock and enable NTP use
timedatectl set-ntp true

That option only works for services that are listed in /usr/lib/systemd/ntp-units.d/ folder.
To the best of my knowledge there's exactly one service listed there : systemd-timesync .

In other words : that command will fail unless a user relies on systemd-timesyncd for time syncing.


background info :

man timedatectl wrote:

set-ntp [BOOL]
Takes a boolean argument. Controls whether network time synchronization is active and enabled (if available). If the argument is true, this enables and starts the first existing network synchronization service. If the argument is false, then this disables and stops the known network synchronization services. The way that the list of services is built is described in systemd-timedated.service(8).

Added in version 195.

man systemd-timedated.service wrote:

LIST OF NETWORK TIME SYNCHRONIZATION SERVICES

systemd-timesyncd will look for files with a ".list" extension in ntp-units.d/ directories.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2024-01-23 20:42:59

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Time offset by +1 hour after bios (UEFI) update

The first command I posted will enable systemd-timesyncd.service:

~$ doas systemctl disable systemd-timesyncd
Removed "/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service".
Removed "/etc/systemd/system/dbus-org.freedesktop.timesync1.service".
~$ doas timedatectl set-ntp true            
~$ ls -l /etc/systemd/system/{sysinit.target.wants/systemd-timesyncd,dbus-org.freedesktop.timesync1}.service
lrwxrwxrwx 1 root root 49 Jan 23 20:41 /etc/systemd/system/dbus-org.freedesktop.timesync1.service -> /usr/lib/systemd/system/systemd-timesyncd.service
lrwxrwxrwx 1 root root 49 Jan 23 20:41 /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service -> /usr/lib/systemd/system/systemd-timesyncd.service
~$

Last edited by Head_on_a_Stick (2024-01-23 20:45:08)


Jin, Jîyan, Azadî

Offline

#7 2024-01-23 22:10:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,048

Re: Time offset by +1 hour after bios (UEFI) update

The OP will have to align his sual boot first, otherwise the clock will be systematically off on both OS before it gets sync'd on either.

Offline

Board footer

Powered by FluxBB