Mac consistently showing wrong time after sleep

Hi,

I have updated to macOS Sonoma (from Monterey) a couple of weeks ago. Since then, I have not only noticed my battery to drain quicker, but also the system clock to be off. This consistently happens after macOS wakes from sleep: it's behind the same amount of time as it slept. It doesn't resynchronize it either if I log in.


Automatic time synchronization is enabled, server is set to default (time.apple.com). Location services are enabled, and the timezone and region are correct. Attached is a screenshot of those settings.



I have a temporary 'bandaid' solution using sntp & crontab, which I will share below, but the root cause has not been fixed, and it's not 100% reliable.


That method is here:

  1. updateTimeLog.log
empty


2. updateTime.sh

sntp -sS time.apple.com
current_date_time=$(date)
echo "Syncing time at $current_date_time"


3. crontab (sudo priveleges, which is command: sudo crontab -e)

* * * * * /Users/yourUsername/updateTime.sh >> /Users/yourUsername/updateTimeLog.log 2>&1


My question is, what is the root cause of this issue, and how would I go about fixing it?

MacBook Air 13″

Posted on Nov 27, 2023 3:56 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 27, 2023 4:13 AM

This fix seems to work for others.

Run this command in the Terminal…

sudo rm /var/db/timed/com.apple.timed.plist


Restart

5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mac consistently showing wrong time after sleep

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.