Setting Server System Date Time
To see current server/system date and time at login as root:
# date
To see current server/system date and time in UTC:
# date -u
Now if you want to adjust system time read below.
Setting Server System Time
Open http://www.time.gov in browser and choose a TimeZone.
Run the date command to set date and time with following format:
(Note! this is only the format, you must change date and time value before running this command)
# date -s ’12/23/2007 13:36:30′
And if you want to set date and time according to UTC, open http://www.time.gov/timezone.cgi?UTC/s/0/java then run:
# date -u -s ’12/23/2007 13:36:30′
Now you can fix your hardware clock with system time:
# /sbin/hwclock -r
Shows your system hardware clock time.
# /sbin/hwclock –adjust
Makes changes the hardware clock to follows system time.
# /sbin/hwclock –systohc
Sets the hardware clock to the system time.
Now most likely you have more accurate system time.