Last active
May 13, 2024 02:36
-
-
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
Thanks!
Looks like the only way is to have a list all the cities with time zone mark in front of each city, or at least witn minimum 24+ with daylight saving time info.
Online update from internet will not help, because sometimes we have different timezone with does not matching with ship's position (longitude) so automatic GPS timezone also will not match. The only way is to change timezone manually.
Apple does not support such commands like ... "-settimezone GMT-08", or similar variations, because it is not from the "list".
Having MAC makes me crazy:) but that's new experience:)
All the best to You! Stay healthy!