LinuxHow to modify the synchronization if the system time setting is incorrect?
Tweak updateCentosHost time zone setting
If yourWordPresswebsite, in order to doSEOThe article is published regularly, but it is found that the publication time of the article is different from the actual time, which may be caused by the incorrect server time setting.
Or, if you see the following error message:
- date(): It is not safe to rely on the system's timezone settings
- mktime(): It is not safe to rely on the system's timezone settings
For the solution, please see the following tutorial to modify the time of the synchronized Centos host.
CWP set server time
Step 1:ClickCWP Control PanelServer Settings on the left → Change Date & Time ▼
- This option doesn't work on VPS systems like openVZ because the openVZ date/time needs to be set on the master node, but you can change the system timezone via SSH.
- CentOS 7 to modify the system time method, please click the link below to view▼
Step 2:Click Apply this date & time bellow ▲
Step 3:Select "Timezone" ▲
- To check your time zone, please visit the following time zone list website
Step 4:Click on "php.info"
Step 5:Open your php.ini file and search for date.timezone
▼
Step 6:You can edit it like ▼
date.timezone = Asia/Kuala_Lumpur
Step 7:After editing, click "Save Changes"
Step 8:Restart the server▼
reboot
^_^ Seeing this, do you also think that the CWP control panel is really easy to use?
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "How to modify and synchronize the system time setting under Linux? Adjust and update the time zone setting of the Centos host", which is helpful to you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-651.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!