In my Linux Ubuntu 14.04 LTS machine date is shown incorrectly. When I try to run hwclock and date commands from the terminal they display 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 hwclock time is right, but date is wrong. How can I correct it.
Thanks
Looks like your hardware clock is set to local time. Run this:
hwclock --localtime --hctosys
See hwclock --help
for more info.
You should configure your boot-time settings so that this would be the default action when restoring your system time from the hardware clock. Check the documentation of your distro.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With