My laptop time is 3 hours advanced, for Hardware/BIOS issues I thought. How I can set the correctly hour in configuration.nix
? I’m from Argentina I set it as time.timeZone="America/Argentina"
but it still advanced 3 hours.
Linux usually assumes that the BIOS/hardware clock is in UTC, if it isn’t, this explains any difference between your wall clock and the clock displayed by your computer.
If there is also a Windows installed that you Dualboot, then things become more complicated, as windows by default assumes that the hardware clock is “local”.
In that case you have 2 possible solutions:
- Tell windows to use hardware as UTC (error prone and buggy)
- Tell Linux to use hardware clock as local (I don’t remember what option does this)
I’m not have a dualboot, just NixOS installed. There is 8:46 AM actually, In my laptop is 11:46, exactly minutes, just 3 hours advanced. That hours problem isn’t new, In Windows with dualboot was usually happened. If I set the time manually, after reboot its adds 3 hours. I just need to know how to set it, sync with a UTC server, maybe?
Time sync should be active by default, though might be ineffective due to skewed base time.
Please make sure your hardware clock is set to UTC. You do that in your firmware settings.
Yeah. I can set it manually in BIOS. Could ends good here but the Authentication browser extension for two-factor doesn’t work now, and the ntp sync overrides the time. Now I need my time and that the extension works.
Could it maybe be that your timezone is set to something else in your desktop environment? Does date
have the correct time? If totp 2fa isn’t working that’s an indicator that your computer has the wrong UTC time. You may want to check your hardware configuration. You don’t have time.hardwareClockInLocalTime = true;
set anywhere, do you?
I’m just using Xmonad window manager, date
doesn’t show the correct time, neither set hardware clock option in configuration.nix
, in hardware-configuration.nix
I don’t have nothing about time, just de default time.
This is really strange. It should “just work”. I would expect your hardware clock to be in UTC and then timezone in ‘America/Argentina’. And then if both of those were true I’d expect date
to give the correct time in ART, or at least the correct time in UTC. If there’s no dualbooting I wouldn’t expect it to still be off. Maybe your ntpd logs will have a hint?
In my firmware interface I exclusively change the time itself, no other time options.
journalctl -u ntpd.service:
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-n>
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion wi>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
ESCOC
n...
62-o Sat May 25 07:06:58 UTC 2024 (1): Starting
-g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
----------------------------------
d by Network Time Foundation,
profit 501(c)(3) public-benefit
ort and training for ntp-4 are
://www.nwtime.org/support
----------------------------------
enabled - a violation of any diagnostic assertion will cause ntpd to abort
0.084 usec (-23)
24-05-13
24-05-19 (week 2315)
0 v6wildcard [::]:123
1 v4wildcard 0.0.0.0:123
2 lo 127.0.0.1:123
3 wlo2 192.168.18.24:123
4 lo [::1]:123
5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
ng socket on fd #24 for interface updates
E_ERROR: 0x2041: Clock Unsynchronized
E_ERROR: 0x2041: Clock Unsynchronized
.
n...
gnal 15 (Terminated)
tivated successfully.
ESCOD
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-n>
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion wi>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
ESCOC
n...
62-o Sat May 25 07:06:58 UTC 2024 (1): Starting
-g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
----------------------------------
d by Network Time Foundation,
profit 501(c)(3) public-benefit
ort and training for ntp-4 are
://www.nwtime.org/support
----------------------------------
enabled - a violation of any diagnostic assertion will cause ntpd to abort
0.084 usec (-23)
24-05-13
24-05-19 (week 2315)
0 v6wildcard [::]:123
1 v4wildcard 0.0.0.0:123
2 lo 127.0.0.1:123
3 wlo2 192.168.18.24:123
4 lo [::1]:123
5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
ng socket on fd #24 for interface updates
E_ERROR: 0x2041: Clock Unsynchronized
E_ERROR: 0x2041: Clock Unsynchronized
.
n...
gnal 15 (Terminated)
tivated successfully.
ESCOC
tp.conf -u ntp:ntp
ll cause ntpd to abort
3
ESCOD
n...
62-o Sat May 25 07:06:58 UTC 2024 (1): Starting
-g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
----------------------------------
d by Network Time Foundation,
profit 501(c)(3) public-benefit
ort and training for ntp-4 are
://www.nwtime.org/support
----------------------------------
enabled - a violation of any diagnostic assertion will cause ntpd to abort
0.084 usec (-23)
24-05-13
24-05-19 (week 2315)
0 v6wildcard [::]:123
1 v4wildcard 0.0.0.0:123
2 lo 127.0.0.1:123
3 wlo2 192.168.18.24:123
4 lo [::1]:123
5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
ng socket on fd #24 for interface updates
E_ERROR: 0x2041: Clock Unsynchronized
E_ERROR: 0x2041: Clock Unsynchronized
.
n...
gnal 15 (Terminated)
tivated successfully.
ESCOD
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-n>
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion wi>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
ESCOC
n...
62-o Sat May 25 07:06:58 UTC 2024 (1): Starting
-g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
----------------------------------
d by Network Time Foundation,
profit 501(c)(3) public-benefit
ort and training for ntp-4 are
://www.nwtime.org/support
----------------------------------
enabled - a violation of any diagnostic assertion will cause ntpd to abort
0.084 usec (-23)
24-05-13
24-05-19 (week 2315)
0 v6wildcard [::]:123
1 v4wildcard 0.0.0.0:123
2 lo 127.0.0.1:123
3 wlo2 192.168.18.24:123
4 lo [::1]:123
5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
ng socket on fd #24 for interface updates
E_ERROR: 0x2041: Clock Unsynchronized
E_ERROR: 0x2041: Clock Unsynchronized
.
n...
gnal 15 (Terminated)
tivated successfully.
ESCOC
tp.conf -u ntp:ntp
ll cause ntpd to abort
3
ESCOD
n...
62-o Sat May 25 07:06:58 UTC 2024 (1): Starting
-g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
----------------------------------
d by Network Time Foundation,
profit 501(c)(3) public-benefit
ort and training for ntp-4 are
://www.nwtime.org/support
----------------------------------
enabled - a violation of any diagnostic assertion will cause ntpd to abort
0.084 usec (-23)
24-05-13
24-05-19 (week 2315)
0 v6wildcard [::]:123
1 v4wildcard 0.0.0.0:123
2 lo 127.0.0.1:123
3 wlo2 192.168.18.24:123
4 lo [::1]:123
5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
ng socket on fd #24 for interface updates
E_ERROR: 0x2041: Clock Unsynchronized
E_ERROR: 0x2041: Clock Unsynchronized
.
n...
gnal 15 (Terminated)
tivated successfully.
ESCOD
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-n>
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion wi>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
lines 1-28...skipping...
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-ntp.conf -u ntp:ntp
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion will cause ntpd to ab>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
Jul 13 14:04:47 nixos systemd[1]: Stopped NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Consumed 47ms CPU time, 2.1M memory peak, 200K read from disk, 1.4K incomin>
-- Boot 820d410a32444c84be2c10246b9569da --
Jul 13 14:05:14 nixos systemd[1]: Starting NTP Daemon...
lines 1-32
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:04:28 nixos ntpd[2683]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:04:28 nixos ntpd[2683]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-n>
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:04:28 nixos ntpd[2683]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:04:28 nixos ntpd[2683]: corporation. Support and training for ntp-4 are
Jul 13 14:04:28 nixos ntpd[2683]: available at https://www.nwtime.org/support
Jul 13 14:04:28 nixos ntpd[2683]: ----------------------------------------------------
Jul 13 14:04:28 nixos ntpd[2683]: DEBUG behavior is enabled - a violation of any diagnostic assertion wi>
Jul 13 14:04:28 nixos ntpd[2691]: proto: precision = 0.084 usec (-23)
Jul 13 14:04:28 nixos ntpd[2691]: basedate set to 2024-05-13
Jul 13 14:04:28 nixos ntpd[2691]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 3 wlo2 192.168.18.24:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 4 lo [::1]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:56d8:b7f7:c44:cfa4]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:04:28 nixos ntpd[2691]: Listening on routing socket on fd #24 for interface updates
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos ntpd[2691]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
Jul 13 14:04:28 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:04:47 nixos ntpd[2691]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Deactivated successfully.
Jul 13 14:04:47 nixos systemd[1]: Stopped NTP Daemon.
Jul 13 14:04:47 nixos systemd[1]: ntpd.service: Consumed 47ms CPU time, 2.1M memory peak, 200K read from>
-- Boot 820d410a32444c84be2c10246b9569da --
Jul 13 14:05:14 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:05:14 nixos ntpd[607]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:05:14 nixos ntpd[607]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-nt>
Jul 13 14:05:14 nixos ntpd[607]: ----------------------------------------------------
Jul 13 14:05:14 nixos ntpd[607]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:05:14 nixos ntpd[607]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:05:14 nixos ntpd[607]: corporation. Support and training for ntp-4 are
Jul 13 14:05:14 nixos ntpd[607]: available at https://www.nwtime.org/support
Jul 13 14:05:14 nixos ntpd[607]: ----------------------------------------------------
Jul 13 14:05:14 nixos ntpd[607]: DEBUG behavior is enabled - a violation of any diagnostic assertion wil>
Jul 13 14:05:14 nixos ntpd[641]: proto: precision = 0.084 usec (-23)
Jul 13 14:05:14 nixos ntpd[641]: basedate set to 2024-05-13
Jul 13 14:05:14 nixos ntpd[641]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:05:14 nixos ntpd[641]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:05:14 nixos ntpd[641]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:05:14 nixos ntpd[641]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:05:14 nixos ntpd[641]: Listen normally on 3 lo [::1]:123
Jul 13 14:05:14 nixos ntpd[641]: Listening on routing socket on fd #20 for interface updates
Jul 13 14:05:14 nixos ntpd[641]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jul 13 14:05:14 nixos ntpd[641]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jul 13 14:05:14 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:05:26 nixos ntpd[641]: Listen normally on 4 wlo2 192.168.18.24:123
Jul 13 14:05:26 nixos ntpd[641]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:7b83:3947:4eea:1748]:123
Jul 13 14:05:26 nixos ntpd[641]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:05:26 nixos ntpd[641]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:05:26 nixos ntpd[641]: 156.244.54.121 local addr <null> -> 192.168.18.24
Jul 13 14:05:26 nixos ntpd[641]: 168.96.251.195 local addr <null> -> 192.168.18.24
Jul 13 14:05:26 nixos ntpd[641]: 162.159.200.1 local addr <null> -> 192.168.18.24
Jul 13 14:05:26 nixos ntpd[641]: new interface(s) found: waking up resolver
Jul 13 14:11:06 nixos ntpd[641]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jul 13 14:45:19 nixos systemd[1]: Stopping NTP Daemon...
Jul 13 14:45:19 nixos ntpd[641]: ntpd exiting on signal 15 (Terminated)
Jul 13 14:45:19 nixos systemd[1]: ntpd.service: Deactivated successfully.
Jul 13 14:45:19 nixos systemd[1]: Stopped NTP Daemon.
Jul 13 14:45:19 nixos systemd[1]: ntpd.service: Consumed 300ms CPU time, 3.3M memory peak, 1.6M read fro>
-- Boot f2f19088b5a64f4f82e91a34250cc012 --
Jul 13 14:45:51 nixos systemd[1]: Starting NTP Daemon...
Jul 13 14:45:51 nixos ntpd[641]: ntpd 4.2.8p18@1.4062-o Sat May 25 07:06:58 UTC 2024 (1): Starting
Jul 13 14:45:51 nixos ntpd[641]: Command line: ntpd -g -c /nix/store/y4pvq7gzjnvaw9wvhpqrxdvlbim9g33y-nt>
Jul 13 14:45:51 nixos ntpd[641]: ----------------------------------------------------
Jul 13 14:45:51 nixos ntpd[641]: ntp-4 is maintained by Network Time Foundation,
Jul 13 14:45:51 nixos ntpd[641]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Jul 13 14:45:51 nixos ntpd[641]: corporation. Support and training for ntp-4 are
Jul 13 14:45:51 nixos ntpd[641]: available at https://www.nwtime.org/support
Jul 13 14:45:51 nixos ntpd[641]: ----------------------------------------------------
Jul 13 14:45:51 nixos ntpd[641]: DEBUG behavior is enabled - a violation of any diagnostic assertion wil>
Jul 13 14:45:51 nixos ntpd[664]: proto: precision = 0.085 usec (-23)
Jul 13 14:45:51 nixos ntpd[664]: basedate set to 2024-05-13
Jul 13 14:45:51 nixos ntpd[664]: gps base set to 2024-05-19 (week 2315)
Jul 13 14:45:51 nixos ntpd[664]: Listen and drop on 0 v6wildcard [::]:123
Jul 13 14:45:51 nixos ntpd[664]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Jul 13 14:45:51 nixos ntpd[664]: Listen normally on 2 lo 127.0.0.1:123
Jul 13 14:45:51 nixos ntpd[664]: Listen normally on 3 lo [::1]:123
Jul 13 14:45:51 nixos ntpd[664]: Listening on routing socket on fd #20 for interface updates
Jul 13 14:45:51 nixos ntpd[664]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jul 13 14:45:51 nixos ntpd[664]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Jul 13 14:45:51 nixos systemd[1]: Started NTP Daemon.
Jul 13 14:46:03 nixos ntpd[664]: Listen normally on 4 wlo2 192.168.18.24:123
Jul 13 14:46:03 nixos ntpd[664]: Listen normally on 5 wlo2 [2803:3f40:802d:bf40:b9e:9c8e:88ae:54b0]:123
Jul 13 14:46:03 nixos ntpd[664]: Listen normally on 6 wlo2 [2803:3f40:802d:bf40:b222:b2d4:80fd:30cd]:123
Jul 13 14:46:03 nixos ntpd[664]: Listen normally on 7 wlo2 [fe80::dddc:2bbe:2e72:b587%2]:123
Jul 13 14:46:03 nixos ntpd[664]: 2606:4700:f1::123 local addr <null> -> 2803:3f40:802d:bf40:b9e:9c8e:88a>
Jul 13 14:46:03 nixos ntpd[664]: 200.11.116.10 local addr <null> -> 192.168.18.24
Jul 13 14:46:03 nixos ntpd[664]: 162.159.200.1 local addr <null> -> 192.168.18.24
Jul 13 14:46:03 nixos ntpd[664]: new interface(s) found: waking up resolver
Jul 13 14:51:39 nixos ntpd[664]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
lines 69-97/97 (END)
What’s the output of timedatectl
?
Has the wrong time
Local time: Sun 2025-07-13 19:22:48 UTC
Universal time: Sun 2025-07-13 19:22:48 UTC
RTC time: Sun 2025-07-13 19:22:48
Time zone: n/a (UTC, +0000)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
So your local time is the same as UTC, but your system time (which is assumed to be UTC) you’ve set to local time while debugging this. So now your whole system thinks it’s running UTC but also that it’s 3 hours in the past, this is why NTP is getting a desync error and TOTP is failing (and probably other crypto related issues).
I would start by setting your bios clock back to UTC (3 hours ahead). Then make sure NTPd synchronizes correctly in the logs. Once that happens, and you’re back to UTC (3 hours ahead), I would take another look at your timezone configuration. From what I can tell, America/Argentina
is not a valid IANA time timezone. Try setting it to one of:
America/Argentina/Catamarca
America/Argentina/Cordoba
America/Argentina/Jujuy
America/Argentina/Lo_Rioja
America/Argentina/Mendoza
America/Argentina/Rio_Gallegos
America/Argentina/Salta
America/Argentina/San_Juan
America/Argentina/San_Luis
America/Argentina/Tucuman
America/Argentina/Ushuaia
Whichever is closest to you.
For reference, my closest timezone is America/New_York
and my timedatectl
looks like this:
➜ timedatectl
Local time: Sun 2025-07-13 17:39:15 EDT
Universal time: Sun 2025-07-13 21:39:15 UTC
RTC time: Sun 2025-07-13 21:39:15
Time zone: America/New_York (EDT, -0400)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
The fact that your timzone is n/a
led me to lookup the IANA timezones and find that America/Argentina
is not listed. You really think it would be… but I guess not.
I’m a little confused, their time seems correct for UTC.
Not sure why their ntp service is choking.
Side note: why ntpd and not systemd-timesyncd?
The problem was it, I set it as America/Argentina/Cordoba
and is ok now
timedatectl
Local time: Sun 2025-07-13 21:21:04 -03
Universal time: Mon 2025-07-14 00:21:04 UTC
RTC time: Mon 2025-07-14 00:21:04
Time zone: America/Argentina/Cordoba (-03, -0300)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
date
Sun Jul 13 09:21:29 PM -03 2025
Thank you guys!
You’re right the UTC time looked correct. I thought it might have been wrong because it sounded like from the conversation that it was manually set to local time at some point, but I was wrong. As for ntpd, also my bad, I forgot timescyncd was the default because I was using ntpd on my personal config.