Skip to content

Instantly share code, notes, and snippets.

@nazmulham
Forked from ddre54/changing_time_zones.sh
Created February 22, 2025 19:35
Show Gist options
  • Save nazmulham/81a08a49f5122d4060603c0f6f64f2e9 to your computer and use it in GitHub Desktop.
Save nazmulham/81a08a49f5122d4060603c0f6f64f2e9 to your computer and use it in GitHub Desktop.
Mac OS X - Terminal commands for changing time zones in the machine
# Useful for testing things that are time zone
# sensitive - like scheduling things
# Get current timezone
sudo systemsetup -gettimezone
# Get list of available timezones
sudo systemsetup -listtimezones
# Set the timezone to the selected timezone
# sudo systemsetup -settimezone <timezone>
sudo systemsetup -settimezone America/New_York
sudo systemsetup -settimezone Europe/Paris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment