amuck-landowner

How to fix cPanel/WHM server time?

Conky

New Member
In WHM I went to Home »Server Configuration »Server Time and set my timezone but it still shows the time wrong... I then went to "Sync time with time server" and the time shows properly, but when going back to the Server Time page it sill shows the time off by about 10 hours. How do I fix this?
 

Magiobiwan

Insert Witty Statement Here
Verified Provider
If it is on an OpenVZ container, contact the host. They need to sync the host node's clock. It it's some other virtualization method, from SSH do "ntpdate time.nist.gov" to sync the clock, then try sertting up NTP in WHM.
 

Conky

New Member
Yes it is OpenVZ. So there is nothing I can do then to make it show my timezone instead of my hosting provider's timezone where the server is located? It isn't a big deal as it's only an hour difference.
 

AMDbuilder

Active Member
Verified Provider
You should contact the host as suggested, once resolved if you sync the time it should hold up.
 

nunim

VPS Junkie
Is cPanel showing the correct timezone at least?  Sync with timeserver won't do much on OVZ unless sys_time is enabled.

I've seen that it seems to favor MST/MSD by default.  When I set it via cPanel it doesn't always stick but doing the following usually does the trick:


rm -f /etc/localtime
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
As others have said, if the time is actually wrong then the host will need to update the time on the Node, one of the disadvantages of OVZ :(
 
Last edited by a moderator:

HostNIT

New Member
Verified Provider
You can probably correct the time in individual scripts or applicationa that you're using but if you want the server time just to be correct you'd have  to contact your provider. It's pretty easy to do on the back end, so the host shouldnt give you much of a push back unless they are on a different time zone than you are.
 
Top
amuck-landowner