FIXED Time Zone Toggle for traveling Executive, this ended up in Jamf Self Service for him
TimeZoneToggler.sh
This file contains 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
#!/bin/sh | |
#Simple macOS Catalina Tested fixed Time Zone Toggle for traveling Executive between Honolulu & New York. This ended up in Jamf Pro Self Service | |
current_timezone=$(sudo systemsetup -gettimezone) | |
if [[ $current_timezone == *"America/New_York"* ]] ; then (sudo systemsetup -settimezone Pacific/Honolulu); else (sudo systemsetup -settimezone America/New_York); fi | |