FIXED Time Zone Toggle script for traveling Executive

FIXED Time Zone Toggle for traveling Executive, this ended up in Jamf Self Service for him

TimeZoneToggler.sh

#!/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

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *