Setting time zone on Macs based on current locationSolved

Participant
Discussion
3 years ago

Please provide mac script to set time zone automatically based on the current device location. Script to set time zone published in the script repository doesn’t enable ‘set time automatically using current location’ checkbox in the date & time settings.

Replies (4)

Marked SolutionPending Review
Participant
3 years ago
Marked SolutionPending Review

This script works on my M1 Mac running Big Sur 11.2.3 :

 

Marked SolutionPending Review
Participant
3 years ago
Marked SolutionPending Review

Works fine on my mac running mojave, but only after a device restart though. Thanks for this @esmee!

Marked SolutionPending Review
Participant
3 years ago
Marked SolutionPending Review

Doesn’t need a device reboot on my Mac (Big Sur 11.2.3). The checkbox gets automatically checked on running the script from the portal.

Marked SolutionPending Review
Hexnode Expert
3 years ago
Marked SolutionPending Review

Hey there, @fleur. On testing the script on a few Macs running different OS versions, we can confirm that the script requires a device reboot only for the older OS versions like Mojave.

@esmee We’ll be sure to add this in our sample script repository.

Thank you 🙂

Have a great day!
Chris Wheeler
Hexnode UEM