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”:

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

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

Predict, compare, and reduce costs with our S3 cost calculator

Previously I have written about how useful public cloud storage can be when starting a…

3 days ago

One Thread to Poll Them All: How a Single Pipe Made WaterDrop 50% Faster

This is Part 2 of the "Karafka to Async Journey" series. Part 1 covered WaterDrop's…

3 days ago

A year of documentation-driven development

For many software teams, documentation is written after features are built and design decisions have…

4 days ago

Announcing FIPS 140-3 for Ubuntu Core22

With the release of the FIPS 140-3 certified cryptographic modules for Ubuntu 22.04 LTS, Canonical…

5 days ago

The foundations of software: open source libraries and their maintainers

Open source libraries are repositories of code that developers can use and, depending on the…

1 week ago

From inspiration to impact: design students from Regent’s University London explore open design for their dissertation projects

Last year, we had the opportunity to speak at Regent’s UX Conference (Regent’s University London’s…

1 week ago