Last active
February 1, 2025 07:57
-
-
Save colindix/0ff2203c3583071e921f5760b2ce73a6 to your computer and use it in GitHub Desktop.
Fix Time Problem on Mac after power out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sntp -sS time.apple.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Time fix for mac | |
# must be run as Root | |
ctime=$(date +%s) | |
cdir=$(pwd) | |
newfname="$cdir/com.apple.timed.plist_$ctime" | |
cp /var/db/timed/com.apple.timed.plist $newfname | |
rm /var/db/timed/com.apple.timed.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment