Re: Time difference between hwnode and vps [message #9036 is a reply to message #9031] |
Thu, 14 December 2006 07:31 |
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
|
|
|