Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: b0chora on October 03, 2021, 03:34:06 PM
-
System: Centos 7 KVM VPS
Hi i'm trying to change server time zone
(https://i.imgur.com/Cp6eFch.png)
when i click [Apply this date & time bellow] and save it
there is still 15 instead of 19
i have changed /usr/local/php/php.ini and /usr/local/cwp/php71/php.ini timezone ("date.timezone" field))
/usr/local/php/php.ini
(https://i.imgur.com/lBts3gv.png)
/usr/local/cwp/php71/php.ini
(https://i.imgur.com/Xiuvjue.png)
-
Try to use the command below
ntpdate ntp.pool.org
Or waiting for update if you use NTP daemon.
-
Use "
date.timezone = "aa/bb"
-
Here's a great little tutorial that i run from the CLI.
https://linuxize.com/post/how-to-set-or-change-timezone-on-centos-7/
-
Thanks for the link -- I double checked all my servers and one was off, so that was helpful!
For reference, to check your system timezone:
timedatectl
To set your timezone:
sudo timedatectl set-timezone America/New_York
-
I set all the servers to Zulu time.
Makes it easier when they are all over the place.
timedatectl set-timezone UTC
-
Military background, eh? Not Greenwich, London, UK?
https://time.is/Z (https://time.is/Z)
-
That's not Zulu time.
There's 2 letters at the end...
Might want to stick with Romeo.