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

Linux Sed Tutorial: Learn Text Editing with Syntax and Examples

This article was adapted from its original version on NixCraft. Sed is an acronym for…

3 hours ago

How to Fix VMware’s “Could not open /dev/vmmon” Error on Ubuntu

You’ve recently installed VMware Workstation on your Ubuntu system and encountered the frustrating “Could not…

10 hours ago

How to Fix Ubuntu 404 Errors While Fetching Dependencies

Have you ever found yourself staring at a terminal full of 404 errors while trying…

10 hours ago

How to Fix ‘Please Install All Available Updates’ Error When Upgrading Ubuntu 18.04 to 20.04 LTS

One particularly frustrating error that many users face when trying to upgrade from Ubuntu 18.04 …

10 hours ago

How to fix “Release is not valid yet” Error in Docker Containers

In the world of containerization, time synchronization issues can create unexpected roadblocks when working with…

10 hours ago

How to fix “Externally Managed Environment” Pip Errors on Ubuntu

If you’ve recently upgraded to Ubuntu 23.04 or newer, you might have encountered a frustrating…

10 hours ago