Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: b0chora on October 03, 2021, 03:34:06 PM

Title: Change Server Date & Time
Post 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)
Title: Re: Change Server Date & Time
Post by: Igor S. on October 04, 2021, 08:13:05 AM
Try to use the command below
Code: [Select]
ntpdate ntp.pool.orgOr waiting for update if you use NTP daemon.
Title: Re: Change Server Date & Time
Post by: André Bastos on January 15, 2023, 05:37:50 AM
Use "

date.timezone = "aa/bb"
Title: Re: Change Server Date & Time
Post by: Starburst on January 15, 2023, 03:32:05 PM
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/
Title: Re: Change Server Date & Time
Post by: overseer on January 29, 2023, 05:59:45 PM
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:
Code: [Select]
timedatectlTo set your timezone:
Code: [Select]
sudo timedatectl set-timezone America/New_York
Title: Re: Change Server Date & Time
Post by: Starburst on January 30, 2023, 12:10:36 AM
I set all the servers to Zulu time.
Makes it easier when they are all over the place.

timedatectl set-timezone UTC
Title: Re: Change Server Date & Time
Post by: overseer on January 30, 2023, 02:42:07 AM
Military background, eh? Not Greenwich, London, UK?
https://time.is/Z (https://time.is/Z)
Title: Re: Change Server Date & Time
Post by: Starburst on January 30, 2023, 03:42:56 AM
That's not Zulu time.
There's 2 letters at the end...

Might want to stick with Romeo.