Download Article
Easy ways to choose a different time zone in Linux
Download Article
This wikiHow guide teaches you how to change the time zone on a Linux computer. You can change the time zone on every Linux distribution using the command line, either permanently with timedatectl, or temporarily with tzselect. If you're using Mint , Ubuntu , or any other distribution with a GUI, you can also change the time zone settings from the Settings menu.
Quick Steps
- Use the "timedatectl" command to see the current time zone.
- Use "timedatectl list-timezones" to view all time zone options.
- Filter the results with grep, e.g., "timedatectl list-timezones | grep America".
- Set the time zone with sudo "timedatectl set-timezone [Continent/City]".
Steps
-
Open a terminal . You can use the timedatectl command in almost any version of Linux to change the timezone.
- This method will work for all Debian and Red Hat -based Linux distributions, including Ubuntu, Debian, Linux Mint, and Fedora.
-
2Check your current time zone. Type timedatectl into Terminal and press ↵ Enter . The terminal will display the current time, time zone, and other details. [1] X Research source
- If you see "System clock synchronized: yes", your system is set to obtain the time from an internet time server automatically. If you're trying to change the time to something other than your actual time zone, you must disable this feature using the command sudo timedatectl set-ntp false .
Advertisement -
3View the list of time zones. You can type timedatectl list-timezones and press Enter to view a list of all time zones, page by page, but it'll be pretty long. The best way to view the list is to filter it (using the grep command) by your city or country.
- For example, all North American, Central American, and South American cities are listed under "America." To see time zones in this region, use timedatectl list-timezones
-
4Set the time zone. Once you have the name of the time zone you want to use, you can use the timedatectl command again to set it permanently. Type sudo timedatectl set-timezone [timezone] , but replace [timezone] with the time zone of your choice.
- For example, sudo timedatectl set-timezone America/Vancouver .
-
5Set your clock to stay synced with internet time servers if you like. You can also use timedatectl to keep your Linux system time synced with an internet time server.
- Type timedatectrl and press Enter . If you see "System clock synchronized: yes," your computer is already synced and will automatically receive the current date and time.
- If It says "no," use sudo timedatectl set-ntp true to obtain the date and time automatically.
Advertisement
-
Open Terminal . If you want to change the time zone temporarily, you can use the tzselect command. Select the Terminal program from your Linux programs, or press Ctrl + Alt + T on your keyboard.
- This method will work in Debian and Red Hat-based Linux versions.
-
Check your current time zone. Type date into Terminal and press ↵ Enter . The terminal will display the date in
Weekday Month Day Time TimeZone Year
format.- For example, you might see something like
Wed Mar 7 07:38:23 EDT 2017
wherein "EDT" refers to the current time zone (Eastern Daylight Time).
- For example, you might see something like
-
Type tzselect and press ↵ Enter . This displays a list of continents and ocean regions (for islands).
-
Select a continent or ocean region. Type a selection number for your general location, then press ↵ Enter .
-
Select a country. Type a selection number from the on-screen list and press ↵ Enter .
-
Select a time zone. Depending on your selected region, you may have additional areas to select from, such as states or provinces.
- If your city is not listed in the time zone list, pick a different city from your same time zone.
-
Confirm the local time. If the information you see is correct, press 1 to accept it, then press Enter .
- If the time isn't correct, type in 2 and press Enter , select a new continent, and repeat the process.
-
Verify that your time zone has been set. Run the date command again and check that the time zone corresponds to the one you just changed to. If you see your new time zone listed, you have successfully changed your computer's time zone.
- This change is temporary. When you reboot your Linux system, the time zone will reset to the default.
Advertisement
-
1Open your Ubuntu settings. In the Activities overview, type settings , then click Settings in the search results.
-
Click Date & Time . You'll see this on the Settings menu. f
-
Turn off Automatic Time Zone. Click the "Automatic Time Zone" switch in the middle of the page to do so.
- If the "Automatic Time Zone" switch is gray, skip this step.
-
Click Time Zone . It's near the bottom of the window. Doing so opens the Time Zone menu.
-
Select a time zone. Click your approximate location on the world map to do so, or type your city to search, then make your selection. You should see the time change to match the selected area's time zone.
-
Close the window. This will save your settings and update your time zone accordingly.
Advertisement
-
Click Date & Time . It's in the "Preferences" group of options.
-
Select a time zone. Click a vertical slice of the map to pick that time zone. You should see the clock on the right side of the page immediately change to reflect the selected time zone's time.
-
Enter your user password when prompted. You need root privileges to change the time zone, so you'll likely be asked to enter your password now.
-
Click Authenticate . It's at the bottom of the prompt. Doing so unlocks the Date & Time menu.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
-
Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
References
About This Article
Thanks to all authors for creating a page that has been read 1,710,268 times.
Reader Success Stories
- "The commands written out were very helpful. It would be an improvement to the article to fix the screenshots, which slightly cover the images of the command line. It was very helpful to have suggested commands for a few different Linux variants." ..." more
Advertisement