How to Change the Timezone in Linux
This wikiHow teaches you how to change the time zone on a Linux computer. You can change the timezone on every Linux distribution by using the command line, or you can use the selection menu in the command line for different Linux...
Method 1 of 4:
Using the Command Line
-
Picture 1 of How to Change the Timezone in Linux Open Terminal. Select the Terminal program from your Linux programs, or press Ctrl+Alt+T on your keyboard. -
Picture 2 of How to Change the Timezone in Linux Check your current time zone. Type date into Terminal and press ↵ Enter. The terminal will display the date inWeekday 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
-
Picture 3 of How to Change the Timezone in Linux Check available time zones. Type in cd /usr/share/zoneinfo and press ↵ Enter, then type in tzselect and press ↵ Enter to display a list of locations.- The /usr/share/zoneinfo directory may vary depending on your Linux distribution.
-
Picture 4 of How to Change the Timezone in Linux Select a continent or ocean. Type in a selection number that pertains to your general location, then press ↵ Enter. -
Picture 5 of How to Change the Timezone in Linux Select a country. Type in a selection number from the on-screen list and press ↵ Enter. -
Picture 6 of How to Change the Timezone in Linux Select a time zone. Type in a selection number to select the preferred time zone region and press ↵ Enter.- If your city is not listed in the time zone list, pick a different city from your same time zone.
-
Picture 7 of How to Change the Timezone in Linux Confirm the local time. In the following prompt, confirm that the local time is correct by typing 1 and then pressing ↵ Enter.- If the time isn't correct, type in 2 and press ↵ Enter, then select a new continent and repeat the process.
-
Picture 8 of How to Change the Timezone in Linux 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 you new time zone listed, you have successfully changed your computer's time zone. -
Picture 9 of How to Change the Timezone in Linux Set your clock to stay synced with internet time servers if you like. Most modern distributions have NTP already installed. If your Linux distribution does not, you will need to install the NTP server package. Use the following commands to install it, depending on your Linux distribution:- Ubuntu/Mint/Debian: sudo apt install ntpdate
- CentOS: sudo yum install ntpdate
sudo /sbin/chkconfig ntpd on - Fedora/RedHat: sudo yum install ntpdate
sudo chkconfig ntpd on - Enter ntpdate server link && hwclock –w after the installation command, making sure to enter the link to the website in place of server link.
Method 2 of 4:
Using the Timezone Selection Menu
-
Picture 10 of How to Change the Timezone in Linux Open Terminal. Select the Terminal program from your Linux programs, or press Ctrl+Alt+T on your keyboard. -
Picture 11 of How to Change the Timezone in Linux Enter the time zone menu command. Depending on your Linux distribution, this command will vary:- Ubuntu and Mint - sudo dpkg-reconfigure tzdata followed by the admin/user password.
- Redhat - redhat-config-date
- CentOS and Fedora - system-config-date
- 'FreeBSD and Slackware - tzselect
-
Picture 12 of How to Change the Timezone in Linux Select your geographic area. Use the arrow keys to select the geographic area the country is found in, then press ↵ Enter. -
Picture 13 of How to Change the Timezone in Linux Select your city/region. Select the city or region corresponding to your time zone, then press ↵ Enter. This will change the time zone on your system. [1]
Method 3 of 4:
Using the Graphical User Interface in Ubuntu
-
Picture 14 of How to Change the Timezone in Linux Click the "System Menu" iconPicture 15 of How to Change the Timezone in Linux -
Picture 16 of How to Change the Timezone in Linux Click the "Settings" icon. This wrench-and-screwdriver-shaped icon is in the lower-left corner of the drop-down menu. Doing so opens the Ubuntu Control Center. -
Picture 17 of How to Change the Timezone in Linux Scroll down and click Details. It's at the bottom of the sidebar that's on the left side of the window.- Make sure that your mouse is over the left-hand sidebar when scrolling.
-
Picture 18 of How to Change the Timezone in Linux Click Date & Time. You'll find this tab on the left side of the window. -
Picture 19 of How to Change the Timezone in Linux Turn off Automatic Time Zone. Click the blue "Automatic Time Zone" switch in the middle of the page to do so.- If the "Automatic Time Zone" switch is grey, skip this step.
-
Picture 20 of How to Change the Timezone in Linux Click Time Zone. It's near the bottom of the window. Doing so opens the Time Zone menu. -
Picture 21 of How to Change the Timezone in Linux Select a time zone. Click your approximate location on the world map to do so. You should see the time change to match the selected area's time zone. -
Picture 22 of How to Change the Timezone in Linux Close the window. This will save your settings and update your time zone accordingly.
Method 4 of 4:
Using the Graphical User Interface in Mint
-
Picture 23 of How to Change the Timezone in Linux Open the Menu. Click Menu in the bottom-left corner of the screen. -
Picture 24 of How to Change the Timezone in Linux Click the System Settings icon. It's made of two grey cogs. You'll find it on the left side of the Menu window. -
Picture 25 of How to Change the Timezone in Linux Click Date & Time. It's in the "Preferences" group of options. -
Picture 26 of How to Change the Timezone in Linux Click Unlock. You'll find this on the right side of the window. -
Picture 27 of How to Change the Timezone in Linux Enter your user password when prompted. Type in the password that you use to log into your computer. -
Picture 28 of How to Change the Timezone in Linux Click Authenticate. It's at the bottom of the prompt. Doing so unlocks the Date & Time menu. -
Picture 29 of How to Change the Timezone in Linux 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. -
Picture 30 of How to Change the Timezone in Linux Click Lock. It's on the right side of the window. Doing so saves your time zone preferences and locks the Date & Time menu.
Update 04 March 2020
You should read it
- Add time zone in Outlook Calendar
- Time zones around the world
- How to change the time zone on Outlook
- Download Zenless Zone Zero for iOS, Android, PC
- How to use PolyTime - the best time zone conversion application
- How to Change Time Zone on Linux
- What is Safe Zone on Instagram?
- How to create AutoFill strings in Excel
- Verizon launches a durable phone, G'zOne Ravine
- How to Optimize Windows Vista
- How to build Ben Zenless Zone Zero
- How to show multiple time frames on Windows 10
Maybe you are interested
Instagram, Facebook and Messenger have problems that caused user activities to be interrupted Take a look at the impressive concept of the iPhone Slide Pro sliding screen Ideal locations for a romantic honeymoon in the North 12 profound caricatures about the digital age Reveal 8 'immortal' magic tricks - the only thing you see turned out to be no magic at all! 20 paintings satire another aspect of the world we live in