Dec 02, 2025
Edward S.
3min Read
Using the correct date and time on your Ubuntu system is essential for tasks and processes such as data logging, cron jobs, and the overall management of a Linux-based VPS setup.
Most applications also use the timezone to manage their data accordingly. When it comes to Ubuntu, the system’s timezone is set during the initial setup, but users can still change it.
This article will discuss how to set a timezone in Ubuntu 22.04 using three easy methods.
In this section, we will show step-by-step how to set the timezone on Ubuntu 22.04 so you can better manage your Ubuntu VPS. Make sure to log in as a root user to perform the following actions.
The most convenient way to change the timezone on an Ubuntu system is via the graphical user interface (GUI). Since it is accessible from the desktop, users don’t have to run any commands.
Here’s how to change the timezone using the GUI:
Check the Time Zone box inside the Date & Time tab to verify if the new timezone and current date were successfully updated.
There are two ways to set up a server’s timezone in the command line – using tzselect or timedatectl. However, the first command only works to change the timezone temporarily.
If you opt for tzselect, the timezone will revert to the one set in the /etc/timezone file after a reboot. You can still use this command as an alternative way to list the timezone options on the system.
To do so, open Terminal or your command-line interface (CLI) and run the tzselect command. Then, specify the desired timezone and press Enter.
One of the best methods to permanently change the timezone on Ubuntu 22.04 is using the timedatectl command. It is a Linux utility that allows users to review and change the configuration of the system clock.
In addition, the timedatectl command enables users to modify the system’s current time and date, set a timezone, and automatically synchronize the clock via a remote server.
Here’s how to change the timezone using this method:
timedatectl list-timezones
timedatectl list-timezones | grep Paris
sudo timedatectl set-timezone [timezone]
timedatectl
The time zone and system clock synchronized values show that the new local time was updated successfully. The system’s timezone information is stored in the /etc/timezone directory, which you can also check to verify the changes.
Using the correct timezone is important for a system’s processes, as it defines when those tasks will be deployed and done. On Ubuntu, users usually set up the system clock during the initial installation.
However, the current timezone is adjustable using three easy methods – the graphical user interface (GUI), the timedatectl command, or the tzdata command.
We hope this article has helped you set up the timezone on your Ubuntu 22.04 system. If you have any questions or suggestions, leave them in the comments section below.
Comments
March 25 2024
Thank you! I haven't used Linux since I retired and I have forgotten all the little tricks and hooks.. I installed Ubuntu on a bricked Windows 10 desktop that cannot be upgraded to Windows 11. After replacing the slow SATA drive with a 1 TB SSD drive, the performance under Linux is spectacular. I just need crutches to walk again. Thank you for providing them.