OpenVZ Forum


Home » General » Support » *SOLVED* Time difference between hwnode and vps
Re: Time difference between hwnode and vps [message #9036 is a reply to message #9031] Thu, 14 December 2006 07:31 Go to previous messageGo to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Your timezone in the VPS is MSK; this likely differs from your HN.

Quote:

I'm surprised this isn't the default

During the redhat/centos installer, you choose the timezone for your HN. The VE template has its own preconfigured timezone. So, its very possible for the zones to differ.


To resolve the problem, You should configure your VE to have the same timezone as the HN. For example, if EST is your preferred timezone:

rm -rf /etc/localtime 2>/dev/null; unlink /etc/localtime 2>/dev/null
ln -s /usr/share/zoneinfo/EST /etc/localtime
vzctl exec 1041 rm -rf /etc/localtime 2>/dev/null
vzctl exec 1041 unlink /etc/localtime 2>/dev/null
vzctl exec 1041 ln -s /usr/share/zoneinfo/EST /etc/localtime


You can find many more exciting timezones with:

find /usr/share/zoneinfo/ | more


Hope this helps!
Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *UPDATED* networking Problem venet / veth
Next Topic: *SOLVED* openvpn in VE / Debian - sarge
Goto Forum:
  


Current Time: Sat Nov 16 21:54:54 GMT 2024

Total time taken to generate the page: 0.03899 seconds