Categories: Ubuntu

How To Set or Change Timezone on Ubuntu 22.04

In Linux-based systems such as Ubuntu 22.04, providing correct Timezone information is essential for performing different system-related tasks. Also, when you set up automatic corn jobs that depend upon the Timezone of your system, providing inaccurate information can cause problems.

This write-up will discuss the procedure to set or change Timezone on Ubuntu 22.04. So, let’s start!

How to check Timezone on Ubuntu 22.04

To check Timezone on Ubuntu 22.04, press “CTRL+ALT+T” to open the terminal and then type the following “timedatectl” command:

$ timedatectl

As you can see from the output, the current Timezone is set to “America/New_York”:

Sponsored

Your Timezone information is also saved in the “/etc/localtime” file. To view the details related to the current Timezone, execute the following “ls” command:

$ ls -l /etc/localtime

In another case, check out the content of the “/etc/timezone” with the help of the “cat” command:

$ cat /etc/timezone

Now, move ahead to set or change your current Timezone using the terminal.

How to set Timezone on Ubuntu 22.04 using terminal

Before setting the Timezone through the terminal, first check out the region and city format. For this purpose, we will utilize the “timedatectl” command with the “list-timezones” option:

$ timedatectl list-timezones

After executing the above-given command, you will see a list of regions with the city names. Utilize the keyboard “up” and “down” keyboard keys to find out the required Timezone:

After doing so, use the following syntax to change your current Timezone:

$ sudo timedatectl set-timezone Region/City

For instance, we will set the Timezone of our Ubuntu 22.04 to “America/Aruba”:

$ sudo timedatectl set-timezone America/Aruba

Sponsored

Now, verify the added changes by executing the simple “timedatectl” command:

$ timedatectl

The given output signifies that we have successfully set our current Timezone of Ubuntu 22.04 system to “America/Aruba”:

How to set Timezone on Ubuntu 22.04 using GUI

Some Linux users prefer to utilize GUI instead of the terminal for tweaking system-related settings. Are you one of them? If yes, then look at the below-given instructions to set or change Timezone on Ubuntu 22.04 using GUI.

First of all, move to the “Activities” menu and search for “Settings,” and open it:

Look for the “Region & Language” category in the left-side panel and click on the “Time Zone” option:

In the opened window, search for the required Timezone in the top search bar:

After performing the previous step, Timezone information will be updated as follows:

We have compiled the two easiest methods to set or change Timezone on Ubuntu 22.04.

Conclusion

To set or change Timezone on Ubuntu 22.04, first, check your current Timezone, then execute the “$ timedatectl list-timezones” command to find the required Region and its City in the available list. After doing so, use the “$ sudo timedatectl set-timezone Region/City” command to set the current Timezone on Ubuntu 22.04. You can also utilize the “Region & Language” GUI settings for updating the Timezone. This write-up discussed the procedure to set or change the Timezone on Ubuntu 22.04.

Ubuntu Server Admin

Recent Posts

How to Install Google Cloud BigQuery Python client library on Linux

In this article, we will see how to Install Google Cloud BigQuery Python client library…

2 days ago

Wallpaper Contest for Xfce 4.20 open for voting

Nov 15,2024 Wallpaper Contest for Xfce 4.20 open for voting The submission phase for the…

2 days ago

Canonical announces the first MicroCloud LTS release

MicroCloud 2.1.0 LTS is now available, expanding the number of Canonical infrastructure solutions with a…

3 days ago

Join Canonical in Paris at Dell Technologies Forum

Canonical is thrilled to be joining forces with Dell Technologies at the upcoming Dell Technologies…

4 days ago

Bringing automation to open source 5G software at Ubuntu Summit 2024

In today’s massive private mobile network (PMN) market, one of the most common approaches to…

5 days ago

Ubuntu Weekly Newsletter Issue 865

Welcome to the Ubuntu Weekly Newsletter, Issue 865 for the week of November 3 –…

7 days ago