Page 1 of 1

Server Timezone

Posted: Sat May 13, 2017 9:37 pm
by pepsi
I'm running CentOS 6 and I've noticed after Vesta installation that the server is set to UTC. I know how to change the timezone of a server, but I'm wondering if I can do it the manual way (i.e. /etc/localtime) or do I need to do it within the VestaCP? I checked the FAQ which addresses the timezone here, but it doesn't mention where in the CP you can make this change and I can't find it. So my question is can I just change the timezone manually without the use of the CP, without it harming anything to do with VestaCP?

Smaller side question, is it okay to perform YUM updates?

Re: Server Timezone

Posted: Mon May 15, 2017 6:33 am
by tjebbeke
You can change the timezone in the command line or in vestaCP. in vesta go to the server configuration.
pepsi wrote:Smaller side question, is it okay to perform YUM updates?
Yes, you need to do this updates!

Re: Server Timezone

Posted: Mon May 15, 2017 7:10 pm
by Trentor
pepsi wrote:So my question is can I just change the timezone manually without the use of the CP, without it harming anything to do with VestaCP?
Doesn't matter, you can do it via CLI or via VestaCP, both safe:

Code: Select all

https://your_domain.tld:8083/edit/server/
Smaller side question, is it okay to perform YUM updates?
You must do it.

Re: Server Timezone

Posted: Fri May 26, 2017 1:58 am
by BBuchanan1013
One thing people don't understand is this:

By default, *nix OS's will read UTC. Even once you've changed the server's timezone to whatever it needs to be, you'll always see this when you use date:

Code: Select all

UTC: date time
Local: date time
Think of it like this: *Nix uses UTC as a atomic clock (god I'm old if y'all don't know what that is).
PHP uses the default, which is *nix default of UTC. You have to set the timezone in php.ini as well to the local zone otherwise the date/time will be off there as well.

Re: Server Timezone

Posted: Fri May 26, 2017 1:59 am
by BBuchanan1013
pepsi wrote:...Smaller side question, is it okay to perform YUM updates?

Honestly, I don't even run the update myself anymore. I set a cron to do it.

yum update -y is the command, have it run at midnight or whenever.