How to Change Time Zone on Linux

Today's TipsMake will show you how to change the time zone on your Linux computer. You can change the time zone on any Linux distribution using the command line or command line menu depending on the Linux version. If you are using Mint, Ubuntu or another distribution with a simple user interface and settings menu, you can also change the time zone right here.

By command line

Picture 1 of How to Change Time Zone on Linux

Open Terminal. Select Terminal from the list of programs on Linux or press the key combination Ctrl+ Alt+ T.

Picture 2 of How to Change Time Zone on Linux

Check current time zone. Type dateinto Terminal then press ↵ Enter. Terminal will display the date in the format Thứ Tháng Ngày Giờ Múi giờ Năm(English abbreviation).

For example, in the line Wed Mar 7 07:38:23 EDT 2017"EDT" is the abbreviation for the current time zone (Eastern Daylight Time: summer time in the Eastern United States).

Picture 3 of How to Change Time Zone on Linux

Check available time zones. Type cd /usr/share/zoneinfoand tap ↵ Enter, then tap tzselectthen tap ↵ Enterto display the list of places.

The directory /usr/share/zoneinfomay vary depending on the Linux version.

Picture 4 of How to Change Time Zone on Linux

Select a continent or ocean. Enter a number that represents an option related to your general location, then tap ↵ Enter.

Picture 5 of How to Change Time Zone on Linux

Select country. Enter the number representing the option in the list on the screen, then press ↵ Enter.

Picture 6 of How to Change Time Zone on Linux

Select time zone. Enter the number representing the regional time zone you want to select and press ↵ Enter.

If your city is not on the list, choose another city in the same time zone as you.

Picture 7 of How to Change Time Zone on Linux

Confirm local time. On the next command line, confirm the local time is correct by pressing 1 then ↵ Enter.

If the time is not correct, enter it 2, press ↵ Enter, then select a new continent and repeat the process.

Picture 8 of How to Change Time Zone on Linux

Confirm that the time zone is set. Execute the command dateagain and check if this time zone corresponds to the time you just changed. If you see the new time appear, it means you have successfully changed the time zone on your computer.

Picture 9 of How to Change Time Zone on Linux

Set up your clock to sync with an internet time server if you prefer. Most modern distributions come with the Network Time Protocol (NTP) pre-installed. If your Linux distribution doesn't have it then install this NTP server package. Use the following commands to install 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 after the installation command, remember to replace the server link with the link to the website.ntpdate server link && hwclock –w

Using the time zone selection menu

Picture 10 of How to Change Time Zone on Linux

Open Terminal. Select Terminal from the list of programs on Linux or press the key combination Ctrl+ Alt+ T.

Picture 11 of How to Change Time Zone on Linux

Enter the command to open the time zone menu. Depending on the Linux distribution, this command will be different:

Ubuntu and Mint - sudo dpkg-reconfigure tzdatafollowed by admin/user password.

Redhat -redhat-config-date

CentOS and Fedora -system-config-date

' FreeBSD and Slackware -tzselect

Picture 12 of How to Change Time Zone on Linux

Select geographical region. Use the arrow keys to select the geographic region to which the country belongs, then press ↵ Enter.

Picture 13 of How to Change Time Zone on Linux

Select city/region. Select the city or region that corresponds to your time zone then tap ↵ Enter. The time zone will be changed on the system.

Using the graphical user interface on Ubuntu

Picture 14 of How to Change Time Zone on Linux

Click the "system menu" icon. The option has a downward-facing triangle in the upper right corner of the screen. A drop-down menu will appear.

Picture 15 of How to Change Time Zone on Linux

Click the wrench and screwdriver "settings" icon in the lower left corner of the drop-down menu. The Ubuntu Control Center will open.

Picture 16 of How to Change Time Zone on Linux

Scroll down and click Details . Options are at the bottom of the bar on the left side of the window.

You need to make sure the mouse pointer is on the left bar when scrolling.

Picture 17 of How to Change Time Zone on Linux

Click Date & Time . This tab is on the left side of the window.

Picture 18 of How to Change Time Zone on Linux

Turn off Automatic Time Zone. Click the blue "Automatic Time Zone" switch in the middle of the page to turn it off.

If the "Automatic Time Zone" switch is gray, skip this step.

Picture 19 of How to Change Time Zone on Linux

Click Time Zone near the bottom of the window. The Time Zone menu opens.

Picture 20 of How to Change Time Zone on Linux

Select time zone. Click your approximate location on the world map to select it. The time will change to match the time zone of the region you select.

Picture 21 of How to Change Time Zone on Linux

Close the window to save the settings. The appropriate time zone will be updated.

Using the Mint graphical user interface

Picture 22 of How to Change Time Zone on Linux

Open Menu. Click Menu in the lower left corner of the screen.

Picture 23 of How to Change Time Zone on Linux

Click the two gray gear-shaped system settings icon. Options are on the left side of the Menu window.

Picture 24 of How to Change Time Zone on Linux

Click Date & Time, which is in the "Preferences" group of options.

Picture 25 of How to Change Time Zone on Linux

Click Unlock on the right side of the window.

Picture 26 of How to Change Time Zone on Linux

Enter the user password when prompted. Enter the password you use to log into your computer.

Picture 27 of How to Change Time Zone on Linux

Click Authenticate . It's at the bottom of the pop-up dialog box. The Date & Time menu will be unlocked.

Picture 28 of How to Change Time Zone on Linux

Select time zone. Click the vertical bar on the map to select a time zone. The clock on the right side of the page will change immediately to reflect the time of the selected time zone.

Picture 29 of How to Change Time Zone on Linux

Click Lock on the right side of the window to save your time zone settings. The Date & Time menu will be locked.

Update 26 October 2023
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile