2

I don't know if the fact that the server is an Amazon EC2 instance makes any difference, but I thought I should mention it.

I'm trying to set the time to an incorrect time for testing reasons.

The server is running Debian 5.0.2

When I try to set the time, it immediately reverts back.

# date -s "2125"
Fri May 13 21:25:00 IST 2011
# date
Fri May 13 12:37:49 IST 2011

If I run # dpkg-reconfigure tzdata (found on Debian User Forums) and change the timezone there to a different time zone, the value returned from # date is still exactly as before.

I'm a bit confused as to why there are two programs that seem to change different time values.

hmontoliu
  • 3,693
  • 3
  • 22
  • 24

2 Answers2

2

Try setting following variable

# echo 1 > /proc/sys/xen/independent_wallclock

AlexD
  • 8,179
  • 2
  • 28
  • 38
0

Xen sets the system clock at regular intervals, from the host/hypervisor's clock.

Another question addressed this phenomenon: Do I need to run ntpd in my EC2 instance?

Hyppy
  • 15,458
  • 1
  • 37
  • 59