Since a few days my MacBook Air 2020 shows the wrong date when set to "Set date and time automatically".
This is regardless of the chosen NTP server.
When time set manually, querying a NTP server from the command line returns:
$ sudo sntp -sS pool.ntp.org
-9.789671 +/- 0.018845 pool.ntp.org 95.81.173.74
Which does not show date and time, but also no major offset.
The offset is consistent at 5 months, 2 days, 3 hours and 10 minutes.
- Tried
time.apple.com
andpool.ntp.org
. No luck. - Tried different time zones. No luck.
- Tried VPN to fake a different physical location. No luck.
- Changed WiFi networks, including using my phone as hotspot. No luck.
- NVRAM reset didn't help. No luck.
Fix
It somehow got fixed when I installed sntp
via homebrew and ran it in combination. After running
sudo touch /var/db/ntp-kod
sudo chown root:wheel /var/db/ntp-kod
Best Answer
Excellent question. There is a lot that you can do to inspect this process.
Some things to point out:
Some computer is telling yours the wrong time, so think about networks and then dig into the command line tools if needed.