Vps – CentOS 5 VPS – setting the date and time

timetimezonevps

I've just tried to set the timezone on my VPS to Europe/London:

ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime

This was fine. However, the time is now wildly out:

$ date
Sat Feb  5 12:33:21 GMT 2011

When it is in fact 22:31.

With it being a VPS, trying to do

$ date -s 22:31

also fails.

Is this something I can fix, or do I need my host to do something?

Thanks.

Best Answer

if using xen, try

echo 1 > /proc/sys/xen/independent_wallclock

and set date time again

Related Topic