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

🚀 Deploy Elastic Stack on Ubuntu VPS (5 Minute Quick-Start Guide)

Here’s the guide to deploy Elastic Stack on Ubuntu VPS, with secure access, HTTPS proxying,…

3 days ago

🚀 Deploy Nagios on Ubuntu VPS

This guide walks through deploying Nagios Core on an Ubuntu VPS, from system prep to…

3 days ago

Shoryuken Has a New Maintainer, and v7.0.0 Is Almost There

After a decade under Pablo Cantero's stewardship, Shoryuken has a new maintainer - me. I'm…

7 days ago

A better way to provision NVIDIA BlueField DPUs at scale with MAAS

MAAS 3.7 has been officially released and it includes a bunch of cool new features.…

2 weeks ago

Ruby Floats: When 2.6x Faster Is Actually Slower (and Then Faster Again)

Update: This article originally concluded that Eisel-Lemire wasn't worth it for Ruby. I was wrong.…

2 weeks ago

MicroCeph: why it’s the superior MinIO alternative (and how to use it)

Recently, the team at MinIO moved the open source project into maintenance mode and will…

2 weeks ago