Last active
February 22, 2025 19:35
-
-
Save ddre54/1e217fbd7e28b5e864dfac31759e66e7 to your computer and use it in GitHub Desktop.
Mac OS X - Terminal commands for changing time zones in the machine
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
# 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
Good morning ddre54
No, there will be nolist by UTC... only google and manual check-out will give you the list but there exist DST (summer time) which is also linked to the city... so at winter it can be different timezone:)
When you set time like this (from terminal) for cities which not listed in common list (check "world time" section where you can add extra clock) and after you go to settings - date and time, you can see that the timezone city is Head office California (do not remember exactly) and you will not be able to change the timezone any more from settings window, only from terminal. You will be able to change it again by setting "approved list" city from terminal, then list from "settings window" will be restored back to normal.
But what to do with iphone or ipad? Over there I am not able to "cheat" like on mac🤔
"I have a dream" (C) that one day Apple will fix that🤓