This script enforces the system timezone to America/New_York (EST) on macOS using a LaunchAgent and helper script. this script requires to enter the system password one time.
Before running the script, disable the following options under:
System Settings → General → Date & Time
- Set date and time automatically
- 24-Hour Time
- Set time zone automatically using your current location
These features must be turned off for the script to take full control of timezone settings.
-
Save the script with the following name:
timezone_enforcer.sh
-
Make it executable:
chmod +x timezone_enforcer.sh
-
Start the timezone enforcement:
./timezone_enforcer.sh start
-
Stop and clean up if needed:
./timezone_enforcer.sh stop
- Forces the timezone to America/New_York
- Reapplies the correct timezone every 30 minutes using a LaunchAgent
- Prevents user or system processes from changing it back
- Prompts for admin access only once per execution
If the timezone keeps reverting:
- Ensure “Set time zone automatically using your current location” is disabled
- Consider also turning off network time:
sudo systemsetup -setusingnetworktime off
- SIP or MDM policies may override manual changes — confirm those are not interfering