whenever I try to set the date from either the command line, or using the Settings window, the new value is always reverted after a few seconds.
I have tried many things: e.g.
date 062120002013.00
This gives me the future date I want of Fri Jun 21 20:00:00 IST 2013.
However, 1 second later running the date command gives me the current time again (not the future time I need to have):
Mon Jun 17 17:45:00 IST 2013
Also
hwclock --set --date="2013-06-21 20:00:00"
and
hwclock -s
will not result in a future date and time being kept on the system - the date and time keep reverting.
I don't have ntp on the system.
Thanks Paul
UPDATE:
I have tried /etc/init.d/vboxadd-service stop and also /usr/sbin/VBoxService --disable-timesync
Same problem - the time gets re-synced after 5 seconds.
ANSWER:
OK, I tried all the options on this page again, and at the second try what worked was this:
Editing /etc/init.d/vboxadd-service
to have --disable-timesync
added to it, and restarting that service. Find line starting with daemon
in start()
function and change it like this:
daemon $binary --disable-timesync > /dev/null
I don't know why it didn't work first time around, possible it needed one of the other many tweaks I made also.
Thanks for all the help!