Hi,
I have a problem with the time set on my Ubuntu 20.04 which uses chrony. As you can see below
$ sudo hwclock --systohc
$ date
Wed 19 Oct 2022 09:04:03 PM CEST
$ timedatectl status
Local time: Wed 2022-10-19 21:04:54 CEST
Universal time: Wed 2022-10-19 19:04:54 UTC
RTC time: Wed 2022-10-19 19:04:54
Time zone: Europe/Brussels (CEST, +0200)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
$ cat </dev/tcp/time.nist.gov/13
59871 22-10-19 17:06:38 19 0 0 388.9 UTC(NIST) *
The date command says 9 PM CEST while the correct CEST time on my watch (Brussel time) is 7 PM. So, although the time zone is set to Brussels CEST, the time is +2 hour ahead.
Below, you can see that chrony is running while ntp is masked.
$ sudo systemctl status chrony
● chrony.service - chrony, an NTP client/server
Loaded: loaded (/lib/systemd/system/chrony.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-10-17 13:09:20 CEST; 2 days ago
$ sudo systemctl status ntp
● ntp.service
Loaded: masked (Reason: Unit ntp.service is masked.)
Active: inactive (dead) since Mon 2022-10-17 13:04:47 CEST; 2 days ago
Main PID: 1773 (code=exited, status=0/SUCCESS)
So, I was wondering why chrony is not correctly synchronized.
Any idea about that?