I have a time server running on a server PC that is meant to change the times of various guest PCs as a result of a TCP/IP command on port 9000 issued by a control application running on an integrated controller. I have everything running the way I would like except that every time I try to set the time on my clients or my server PC using the following:
sudo hwclock --set --date="2014-01-30 12:00:00"
sudo hwclock --hctosys
the time changes to my issued value and then moments later the time reverts back to what it was initially. I've tried using these commands on a guest pc with ntp stopped, and no network connectivity with the /etc/localtime file deleted and it still does this. I'm using the latest version of Lubuntu currently. Does anyone know why this might be happening?
By the by, when I say "PC" I am referring to virtual machines I have running in VirtualBox. Eventually this will go onto real PCs but for now I'm working virtually.
--hctosys
will also set the timezone, are you sure its set correctly?