How To Change TimeZone on CentOS Stream 9

In this wiki article, we will learn how to change the timezone in CentOS Stream 9 using the timedatectl command.

Check your Current TimeZone

To get detailed information on your CentOS date, time, and timezone you use the timedatectl command.

timedatectl

The TimeZone configuration on CentOS Stream 9 OS is stored set by the /etc/localtime file. This file is a symbolic link to a timezone file under /usr/share/zoneinfo.

To get a basic view of the timezone you can ls the file to its a symbolic link.

ls -l /etc/localtime

Listing TimeZones

Using timedatectl command to list TimeZones,

timedatectl list-timezones

Set your Preferred TimeZone

Once you have the list of timezones, you can set the one you prefer.

timedatectl set-timezone your_time_zone

Example:

root@vps:~# timedatectl set-timezone Australia/West

To confirm your changes were applied by running the timedatactl command.

timedatectl

Now you have successfully configured TimeZone on your CentOS Stream 9.