As I mentioned in my Solve an obscure Back to my Mac issue blog entry, it’s possible to configure OS X’s time servers to be a bit more robust than just relying on one time server–if that server goes offline, your clock won’t sync any more, which (as discussed in the blog entry) can cause some problems.
With just a bit of work in Terminal, though, you can set up a pool of time servers, so that if any one goes offline, another will be available to provide time services for your Mac. The key to this trick is the NTP Pool Project, which is a big virtual cluster of timservers. To use the NTP Pool Project, you need to set up a configuration file that points to a few of the NTP Pool Project’s machines.
Open Terminal, and type cd /etc, and press Return. In that directory, you need to edit the ntp.conf file, and you need to edit it with root privileges via the sudo command: sudo nano ntp.conf, and provide your admin password when prompted.
When the file opens, delete the one line you see there, and then paste in the following text, assuming you’re in the United States:
If you’re not in the United States, you’ll want to modify this list based on your location. You can find region and (by clicking on a region name) country-level servers by checking this page on the NTP Pool Project site.
After you’ve pasted the above text into the file, press Control-X, Y (to save changes), and then Return (to accept the filename). To make your changes take effect, you need to toggle the time server off and on. The easiest way to do that is to open the Date & Time System Preferences panel, and then disable and eanble the “Set date & time automatically” checkbox on the Date & Time tab. You’ll notice here that the server list box on the right contains all of the servers you specified in the configuration file.
Once you’ve reactivated automatic time updating, you’re good to go. You can see how this works by returning to Terminal, and running the following command. (Note that you may have to wait anywhere from one to many minutes for the server information to update before this command works.)
Once set up like this, your machine’s clock should always be in sync, even if a given timeserver goes offline. Thanks to Mac OS X Hints reader Kurt Schwehr for today’s tip.