Author Topic: Change Server Date & Time  (Read 4708 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Change Server Date & Time
« on: October 03, 2021, 03:34:06 PM »
System: Centos 7 KVM VPS


Hi i'm trying to change server time zone



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



/usr/local/cwp/php71/php.ini

« Last Edit: October 03, 2021, 03:41:22 PM by b0chora »

Offline
*****
Re: Change Server Date & Time
« Reply #1 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.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Change Server Date & Time
« Reply #2 on: January 15, 2023, 05:37:50 AM »
Use "

date.timezone = "aa/bb"
André Bastos
ISBrasil Hospedagem de Site

Offline
*****
Re: Change Server Date & Time
« Reply #3 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/

Offline
*****
Re: Change Server Date & Time
« Reply #4 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

Offline
*****
Re: Change Server Date & Time
« Reply #5 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

Offline
*****
Re: Change Server Date & Time
« Reply #6 on: January 30, 2023, 02:42:07 AM »
Military background, eh? Not Greenwich, London, UK?
https://time.is/Z
« Last Edit: January 30, 2023, 02:43:46 AM by overseer »

Offline
*****
Re: Change Server Date & Time
« Reply #7 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.
« Last Edit: January 30, 2023, 03:48:05 AM by Starburst »