Why hwclock and date show different results and how to fix them

On my Linux, Ubuntu 14.04 LTS date is not displayed correctly. When I try to run the hwclock and date commands from the terminal, they show different results:

sudo hwclock
Thursday 14 August 2014 04:38:09 PM IST -0.766043 seconds

date
Thu Aug 14 11:08:30 IST 2014

Here the hwclock time is correct, but the date is incorrect. How can I fix it.

thank

+3


source to share


1 answer


It looks like your hardware clock is set to local time. Run this:

hwclock --localtime --hctosys

      



For details see hwclock --help

.

You must adjust your boot time settings to be the default when restoring the system time from the hardware clock. Check your distribution's documentation.

+6


source







All Articles