4 Ways To Change The Timezone In Linux - WikiHow
Maybe your like
- Log in / Sign up
- Timedatectl Command |
- Tzselect Command |
- Ubuntu GUI |
- Linux Mint GUI |
- Video |
- Tips
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources. This article has been viewed 1,731,857 times. Learn more...
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
Method 1 Method 1 of 4:Using the Timedatectl Command
-
1 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.
-
2 Check your current time zone. Type timedatectl into Terminal and press ↵ Enter. The terminal will display the current time, time zone, and other details.[1] - 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.
-
3 View 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
-
4 Set 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.
-
5 Set 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
Using the tzselect Command
-
1 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.
-
2 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).
-
3 Type tzselect and press ↵ Enter. This displays a list of continents and ocean regions (for islands). -
4 Select a continent or ocean region. Type a selection number for your general location, then press ↵ Enter. -
5 Select a country. Type a selection number from the on-screen list and press ↵ Enter. -
6 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.
-
7 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.
-
8 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
Using Ubuntu System Menus
-
1 Open your Ubuntu settings. In the Activities overview, type settings, then click Settings in the search results. -
2 Click Date & Time. You'll see this on the Settings menu. f -
3 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.
-
4 Click Time Zone. It's near the bottom of the window. Doing so opens the Time Zone menu. -
5 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. -
6 Close the window. This will save your settings and update your time zone accordingly. Advertisement
Using Linux Mint System Menus
- 1
- Open your Linux Mint settings. To do this, click the menu and select the System Settings icon. It's made of two grey cogs.
- Open your Linux Mint settings. To do this, click the menu and select the System Settings icon. It's made of two grey cogs.
-
2 Click Date & Time. It's in the "Preferences" group of options. -
3 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. -
4 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. -
5 Click Authenticate. It's at the bottom of the prompt. Doing so unlocks the Date & Time menu. Advertisement
Expert Q&A
Search Add New Question Ask a Question 200 characters left Include your email address to get a message when this question is answered. Submit AdvertisementVideo
Tips
- Some applications (such as PHP) have separate timezone settings from the system timezone. Thanks Helpful 0 Not Helpful 0
You Might Also Like
References
- ↑ https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/basic-system-configuration/Configuring_the_Date_and_Time/
About This Article
- Send fan mail to authors
Reader Success Stories
-
Alex Miller
Feb 8, 2017
"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
Is this article up to date?
Yes No Advertisement Cookies make wikiHow better. By continuing to use our site, you agree to our cookie policy.Alex Miller
Feb 8, 2017
"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 Share yours!Quizzes & Games
You Might Also Like
Trending Articles
Watch Articles
Trending Articles
Quizzes & Games
- Categories
- Computers and Electronics
- Operating Systems
- Linux
- Home
- About wikiHow
- Experts
- Jobs
- Contact Us
- Site Map
- Terms of Use
- Privacy Policy
- Do Not Sell or Share My Info
- Not Selling Info
- Contribute
Follow Us
×wikiHow Tech Help Pro:
Level up your tech skills and stay ahead of the curve
Let's go! X --Tag » How To Set Timezone In Linux
-
How To Set Or Change The Time Zone In Linux
-
How To Set The Time Zone In Linux - GroovyPost
-
How To Set Or Change Time Zone In Linux - TecAdmin
-
How To Change The Timezone In Linux? - LinuxForDevices
-
How To Set The Time Zone Using The Linux Terminal - MakeUseOf
-
How To Change The Time Zone In Linux
-
How To Set Or Change The Time Zone In Linux Server
-
Set The Date, Time, And Timezone On A Linux Server - - Rackspace
-
How To Change The Timezone On Linux - Baeldung
-
How To Check Or Set/Change The Timezone In Linux - ByteXD
-
2 Ways To Change Timezone In Linux - Howtouselinux
-
Chapter 3. Configuring The Date And Time Red Hat Enterprise Linux 7
-
How To Change System Timezone In Ubuntu - Simplified Guide
-
How To Change The Time Zone In The Linux Shell - A2 Hosting