Hack 8. Set Hardware Date and Time Using hwclock

Before setting the hardware date and time, make sure the OS date and time is set appropriately as shown in the hack#7.

Set the hardware date and time based on the system date as shown below:

# hwclock –systohc

# hwclock --systohc –utc

Use hwclock without any parameter, to view the current hardware date and time:

# hwclock

Check the clock file to verify whether the system is set for UTC:

# cat /etc/sysconfig/clock

ZONE="America/Los_Angeles"
UTC=false
ARC=false