r/macsysadmin • u/sheravi • 5d ago
Command Line Force time zone update
Does anyone know if there's a way to force macOS to get new time zone definitions from Apple? At the moment it seems to be completely random for when they get updated on a newly imaged computer. I'm in Alberta and the Daylight Savings change has been a bit wonky on any new Macs we image that don't have the new definitions. They will get them eventually with that notification about restarting to have them take effect, but it can sometimes be many hours after starting them up.
6
Upvotes
2
u/Babaganouj333 4d ago
Trying out a possible fix where I work. From what i've seen is the AB non- compliant and hasn't ran the patch if i leave it alone it gets it eventually by the next day.
Can verify its not patched yet with this terminal command:
ls -l /var/db/timezone/tz_latest
Would return No such file or directory if still unpatched.
Workaround that seems to have worked in my limited testing so far:
1
u/Studiolx-au 5d ago
Why are you imaging macOS? Apple killed that a while ago. Not surprised you are getting random bugs. GUI- turn off time from location, turn it back on.
Zsh:
defaults write /Library/Preferences/com.apple.timezone.auto Active -bool YES
systemsetup -setusingnetworktime on
killall timed