An area of the planet where the same standard time is observed is known as a Timezone. Every time zone has an identity that serves as a description, and it typically follows the format of region/city (Asia/Amman). The built-in “Date & Time” setting in Ubuntu 22.04 allows us to alter and configure the Timezone.
We will elaborate on the method to set Timezone on Ubuntu 22.04 in this article:
- using Terminal
- using GUI
Let’s get started!
Method 1: Change Timezone on Ubuntu 22.04 using Terminal
On Ubuntu 22.04, to set the Timezone using the terminal, follow the steps listed below.
Step 1: Check current Timezone
First, open the terminal using “CTRL+ALT+T” and execute the below-given command to check the current Timezone:
$ timedatectl
The alternative method to check the Timezone is by using the “cat” command along with “/etc/timezone” path:
$ cat /etc/timezone
Step 2: Check list of Available Timezone
In the next step, get the list of Available Timezone on Ubuntu 22.04. The list contains regions along with city names. Then, select the required Timezone from the given list:
$ timedatectl list-timezones
Step 3: Set new Timezone
Set the region and Timezone according to your preferences. As “Africa/Cairo” Timezone is configured on our Ubuntu 22.04:
$ sudo timedatectl set-timezone Africa/Cairo
Move toward the Timezone confirmation.
Step 5: Confirm Timezone settings
Confirm the Timezone changes by executing the below-given command:
$ cat /etc/timezone
The given output indicates that we have successfully set our Timezone as “Africa/Cairo”:
Let’s check out the GUI method for setting Timezone.
Method 2: Change Timezone on Ubuntu 22.04 using GUI
To change the Timezone of the Ubuntu system using GUI, follow the provided steps carefully.
Step 1: Open Settings
First search “Settings” in the “Activities” menu and open it:
Step 2: Set Timezone
Select the “Date & Time” category of the system “Settings” and click on the highlighted “Time Zone” option:
Search for the desired Timezone in the search bar and select it from displayed options:
As you can see, we have successfully set new Timezone on Ubuntu 22.04:
We have effectively explained the methods to change or set the Timezone on Ubuntu 22.04.
Conclusion
To change the Ubuntu 22.04 Timezone, you can use Ubuntu’s terminal or GUI. In the first approach, check the available time zone. Then, use the command “$ sudo timedatectl set-timezone Region/City>” to define the desired Timezone. In the second approach, open the System “Settings”, select the “Date & Time” category, and change the new Timezone. We have demonstrated the methods to set or change the Timezone using the terminal and GUI on Ubuntu 22.04.
TUTORIALS ON LINUX, PROGRAMMING & TECHNOLOGY