Run the timedatectl command to verify the changes: timedatectl Local time: Wed 17:47:10 EST Once you identify which time zone is accurate to your location, run the following command as sudo user: sudo timedatectl set-timezone your_time_zoneįor example, to change the system’s timezone to America/Toronto: sudo timedatectl set-timezone America/Toronto To list all available time zones, you can either list the files in the /usr/share/zoneinfo directory or use the timedatectl command. The timezone naming convention usually uses a “Region/City” format. usr/share/zoneinfo/Etc/UTCīefore changing the timezone, you’ll need to find out the long name for the timezone you want to use. So, another option to check the timezone is to show the path the symlink points to using the ls command The system timezone is configured by symlinking /etc/localtime to a binary timezone identifier in the /usr/share/zoneinfo directory. The output below shows that the system’s timezone is set to UTC: Local time: Wed 22:43:42 UTC In CentOS and other modern Linux distros, you can use the timedatectl command to display and set the current system’s time and timezone. To be able change the system’s timezone you’ll need to be logged in as root or user with sudo privileges This tutorial explains how to set or change the timezone on CentOS 7. 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. Using the correct timezone is important for many systems related tasks and processes. How To Change Your WordPress Timezone? | WPHub
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |