Setting the date and time on a guest to an arbitrary value
Posted: 17. Jan 2011, 02:22
This question has been asked before, but the solutions given seem somewhat clunky, and I'm wondering if there is a simpler way.
I want to test an app's behaviour during transitions in and out of daylight savings time. I therefore want to be able to set the date and time of a VM, (preferably from the Control Panel applet, but from a batch file is fine) and not have it "corrected" ti the host's time for me.
I see that time synchronization with the host is achieved via the guest additions. I don't want to give up all of those features in order to stop the time being synchronized. There seems to be no way to disable an individual feature of the guest additions, so I'm wondering if I can use the options for tuning --timesync to do this.
E.g. is there come combination of --timesync-interval, --timesync-min-adjust, --timesync-set-start, --timesync-set-on-restore which will allow me to set the date and time to a specific value and then not adjust it ever again (or until a very long time has elapsed)?
Then I can have several batch files that I can run to set to time and date to a series of dates near the daylight transition times.
Help!
TIA
Ross
I want to test an app's behaviour during transitions in and out of daylight savings time. I therefore want to be able to set the date and time of a VM, (preferably from the Control Panel applet, but from a batch file is fine) and not have it "corrected" ti the host's time for me.
I see that time synchronization with the host is achieved via the guest additions. I don't want to give up all of those features in order to stop the time being synchronized. There seems to be no way to disable an individual feature of the guest additions, so I'm wondering if I can use the options for tuning --timesync to do this.
E.g. is there come combination of --timesync-interval, --timesync-min-adjust, --timesync-set-start, --timesync-set-on-restore which will allow me to set the date and time to a specific value and then not adjust it ever again (or until a very long time has elapsed)?
Then I can have several batch files that I can run to set to time and date to a series of dates near the daylight transition times.
Help!
TIA
Ross