![]() ![]() If you get a warning saying, “The system is configured to read the RTC time in the local time zone.”, run the following command to use RTC in UTC: timedatectl In this example the timezone is set to UTC: Local time: Sat 21:30:22 UTC It is available on all modern systemd-based Linux systems: timedatectl Timedatectl is a command-line utility that allows you to view and change the system’s time and date. This article describes how to set or change the timezone on CentOS 8 systems. On CentOS, the system’s timezone is set during the install, but it can be easily changed at a later time. For example, the cron daemon uses the system’s timezone for executing cron jobs, and the timestamps in the log files are based on the same system’s timezone. Choose your geographic area and press Enter.Using the correct timezone is essential for many systems related tasks and processes. The package configuration window will open.Type in the following command to reconfigure tzdata and press Enter:. ![]() It contains files documenting both current and historical transitions of time zones around the world.įollow these steps to change the timezone using the tzdata command: Users of Ubuntu versions such as 16.04 or lower can set their timezones by reconfiguring the timezone and daylight saving time data or tzdata. Using the tzdata Command (Older Ubuntu Versions) The time zone and system clock synchronized values show that the new local time was updated successfully. Insert the command below and press Enter to verify the update:.Note that it will not produce any output: Once you have decided which timezone to select, run the following command to make the change.Alternatively, combine the timedatectl command with the grep command to filter the search using the name of a city. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |