


The system time zone is configured by connecting /etc/localtimeto the binary timezone identifier in the directory /usr/share/zoneinfo. ”, Run the following command to use the RTC in UTC: timedatectl If you get a warning that says, ” The system is configured to read the RTC time in the local time zone. timedatectlĪs the output below shows, the system timezone is set to UTC: Local time: Sat 21:30:22 UTC On Rocky Linux 8 and other modern Linux distros, you can use the command timedatectlto display and set the current system time and timezone. You must be logged in as a user with sudo privileges to change the system timezone. This tutorial explains how to set or change the time zone on Rocky Linux 8.4 and CentOS 8 systems. On the Rocky Linux 8.4 and CentOS 8 operating system, the system timezone is set during installation, but can be easily changed at a later time.

For example, the cron daemon uses the system timezone to execute cron jobs and timestamps in the log file are based on the same system timezone. Using the correct time zone is essential for many system-related tasks and processes.
