Server Timezone

General questions about VestaCP
pepsi
Posts: 6
Joined: Wed Apr 26, 2017 1:51 am

Server Timezone

Postby pepsi » Sat May 13, 2017 9:37 pm

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?

tjebbeke
Collaborator
Posts: 749
Joined: Mon May 11, 2015 8:43 am
Contact:

Re: Server Timezone

Postby tjebbeke » Mon May 15, 2017 6:33 am

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!

Trentor
Posts: 74
Joined: Fri Apr 25, 2014 6:42 pm

Re: Server Timezone

Postby Trentor » Mon May 15, 2017 7:10 pm

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.

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: Server Timezone

Postby BBuchanan1013 » Fri May 26, 2017 1:58 am

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.

BBuchanan1013
Posts: 139
Joined: Thu Jan 07, 2016 12:01 am

Re: Server Timezone

Postby BBuchanan1013 » Fri May 26, 2017 1:59 am

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.


Return to “General Discussion”



Who is online

Users browsing this forum: No registered users and 10 guests