Changing the date on a XenServer

I’ve installed Citrix XenServer 5.6 FP1 on a old server for testing. After booting the server after some down time I’ve received a message in the console that the system time and date have been chanced.

To troubleshoot this issue I’ve logged on in the Local Command Shell. I’ve entered the commando ‘date’, the response is:

Sat Feb 18 20:37:34 2006

To change the date you have to use the following input mask:

date mmddhhmmyyyy.ss

To enter the current date and time this would look like this:

date 040622012011.00

Now to sync the new set time with the hardware clock on the server:

hwclock –systohc