Setting time zone on Macs based on current locationSolved

Participant
Discussion
Feb 18, 2022

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
Feb 21, 2022
Marked SolutionPending Review

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

 

Marked SolutionPending Review
Participant
Feb 23, 2022
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
Feb 24, 2022
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
Feb 26, 2022
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

Save