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.

Setup or Change Time-Zone using set-timezone Command 1

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

Setup or Change Time-Zone using set-timezone Command 2

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:

Setup or Change Time-Zone using set-timezone Command 3

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

Setup or Change Time-Zone using set-timezone Command 4

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   

Setup or Change Time-Zone using set-timezone Command 5

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

Setup or Change Time-Zone using set-timezone Command 6

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

$ timedatectl

Setup or Change Time-Zone using set-timezone Command 7

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.

Leave a Comment

Only people in my network can comment.