We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Server Timezone
Server Timezone
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?
Smaller side question, is it okay to perform YUM updates?
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: Server Timezone
You can change the timezone in the command line or in vestaCP. in vesta go to the server configuration.
Yes, you need to do this updates!pepsi wrote:Smaller side question, is it okay to perform YUM updates?
Re: Server Timezone
Doesn't matter, you can do it via CLI or via VestaCP, both safe: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?
Code: Select all
https://your_domain.tld:8083/edit/server/
You must do it.Smaller side question, is it okay to perform YUM updates?
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Server Timezone
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:
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.
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
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.
-
- Posts: 139
- Joined: Thu Jan 07, 2016 12:01 am
Re: Server Timezone
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.