Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Server Timezone

General questions about VestaCP
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
pepsi
Posts: 20
Joined: Wed Apr 26, 2017 1:51 am

Server Timezone
  • Quote

Post by 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?
Top

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

Os: CentOS 6x
Web: apache + nginx
Re: Server Timezone
  • Quote

Post by 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!
Top

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

Re: Server Timezone
  • Quote

Post by 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.
Top

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

Re: Server Timezone
  • Quote

Post by 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.
Top

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

Re: Server Timezone
  • Quote

Post by 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.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password