Fix desynchronized clock in macOS with terminal

You may face issue when your clock is not synchronized properly and you’re not able to re-sync time. Example: timestamps differ by 367 seconds - check your system clock

sudo sntp -S time.apple.com
+367.274403 +/- 0.000214 time.apple.com 17.253.20.253

In that case we see time differs by 367s and it’s still same (no change to difference). To fix this you need to kill timed process that should start sync time again:

sudo ps -ax | grep timed
  117 ??         0:00.10 /usr/libexec/timed

sudo kill -9 117

sudo sntp -S time.apple.com
+0.107267 +/- 0.000198 time.apple.com 17.253.20.253

Time difference is fixed now.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.