35

My Snow Leopard macbook is set to Set date and time automatically: Apple Americas/U.S. (time.apple.com), but despite sitting idle for several hours (with internet connection), it has yet to do any syncing, the date remains off by ~2 days.

5 Answers5

65

From terminal:

sudo ntpdate -u time.apple.com

macOS Catalina:

sudo sntp -sS pool.ntp.org

dazweeja
  • 862
  • 7
  • 4
4

Per the ntpdate man page, the accepted answer will become obsolete when ntpdate is retired. If you encounter this problem, this will do the equivalent:

sudo ntpd -q 

ntpd : ...sets and maintains the system time of day in syn- chronism with Internet standard time servers.

-q : Set the time and quit.

Sources:

Greenonline
  • 2,235
  • 11
  • 24
  • 30
3

I ran these two commands on Mojave:

sudo systemsetup -setnetworktimeserver pool.ntp.org
sudo sntp -sS pool.ntp.org

Following https://superuser.com/a/1479345 following two answers on https://apple.stackexchange.com/q/117864

A T
  • 781
  • 1
  • 11
  • 26
1

The currently accepted answer does NOT work in Mojave, as ntpdate and co have been removed.

See this excellent answer on the Apple StackExchange for up-to-date instructions.

Alex Ryan
  • 217
  • 1
  • 5
  • Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. – DavidPostill Apr 07 '20 at 15:48
  • The linked answer is more likely to be updated with new helpful information than it is to disappear. Links were invented precisely so that we don't have to copy-paste information everywhere it's used. Unnecessary denormalization [is bad](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)! – Alex Ryan Apr 08 '20 at 16:57
  • 1
    Unfortunately that's not what we do here. We are not Wikipedia. A class example is Microsoft who broke huge numbers of links and deleted the content. Please follow the Stack Exchange conventions as instructed. Please read [Your answer is in another castle: when is an answer not an answer? - Meta Stack Exchange](https://meta.stackexchange.com/questions/225370/your-answer-is-in-another-castle-when-is-an-answer-not-an-answer) – DavidPostill Apr 08 '20 at 17:02
1

you can go into the system preferences and reset the time manualy, and then set the time to sync automaticly again once you are back up to speed with whatever day/week/month you need. i am not sure why its not syncing with apple, but you can just set the day properly and it will be accurate as long as you dont cross too many time zones.

Jon Valentine
  • 551
  • 3
  • 8
  • 20
  • 2
    Many time sync utilities have safeguards, where they won't sync if the time difference is too large, to prevent disasters if, for example, time server is compromised, etc. So, set the time roughly right manually, then it should sync by itself. – haimg Dec 20 '11 at 16:05