Categories: Ubuntu

Setup or Change Time-Zone using set-timezone Command

Your computer sets the time and date when it syncs with an online server. In some cases, the date and time may change when the computer is connected to a server with a different time zone. So, you may need to modify the time zone in this case.

Your system’s time zone is set automatically during the installation process of Ubuntu, but it can be modified. This article shows you how to set up or change the time zone of your Ubuntu 20.04 (LTS) or 20.10 system.

Methods for Changing Time Zone in Ubuntu

There are two primary methods for modifying the time zone in Ubuntu:

    Sponsored
  • Using the GUI
  • Using the Command-Line

Method 1: Change Time Zone Using the GUI

To change the current system time zone using the GUI, go to the “Settings” window by clicking “Settings” after right-clicking on the desktop. You can also simply search for “Settings” in the Applications menu.

After you click “Settings,” the Settings window will appear. Click “Date and Time” to manage the time and date settings.

The time zone automatically changes when you have Internet service, but you can still modify it by clicking the “Time Zone” option. A new window will appear with the world map; you may either search for your current location in the search bar or simply click on the map to set the time zone:

Modify the time zone according to your preferences and close the window.

Method 2: Change Time Zone Using the Command-Line

To modify the time zone using the command line, open the terminal and check the current date and time status using the following command:

Sponsored
$ timedatectl

According to the output, the system’s current status is set to UTC (Coordinated Universal Time).

To obtain a list of all accessible time zones, enter the command provided below:

$ timedatectl list-timezones 

Identify the appropriate time zone according to your location and type the time zone in the terminal, as follows:

Now, check the current status of your location with the following command:

$ timedatectl

Conclusion

This article discussed the detailed procedure for changing the time zone of your Ubuntu system using two different methods. The time zone can be set either using the command line or using the GUI of your system.

Ubuntu Server Admin

Recent Posts

Revolutionizing Web Page Creation: How Structured Content is Slashing Design and Development Time

Co-authored with Julie Muzina A year ago, during our Madrid Engineering Sprint, we challenged ourselves…

23 hours ago

Ubuntu Weekly Newsletter Issue 897

Welcome to the Ubuntu Weekly Newsletter, Issue 897 for the week of June 15 –…

2 days ago

Ubuntu Core is now available on MediaTek’s Genio platform

This is the first optimized Ubuntu Core image available on MediaTek’s Genio 350, 510, 700,…

2 days ago

Effective infrastructure automation to reduce data center costs

Data centers are expensive: automation is the solution Today, managing a data center requires striking…

5 days ago

What are our partners building for device makers? Explore the highlights from Ubuntu IoT Day Singapore

Our first Ubuntu IoT Day in Southeast Asia – and our first ever event in…

6 days ago

Fixes available for local privilege escalation vulnerability in libblockdev using udisks

Qualys discovered two vulnerabilities in various Linux distributions which allow local attackers to escalate privileges.…

6 days ago