Time not set right, date -u and hwclock -u yield different results

794 Views Asked by At

so i am having this weird problem with my clock on pc. I am currently using Kali Linux 2018.1.

Basically my problem is that my computer time is one hour behind every time i start my pc. So is my hardware clock. What i find even weirder is that date -u and hwclock -u display different results:

root@horse:/etc# date
Sat Mar  3 22:50:56 CET 2018
root@horse:/etc# hwclock
2018-03-03 22:50:59.654599+0100
root@horse:/etc# date -u
Sat Mar  3 21:51:03 UTC 2018
root@horse:/etc# hwclock -u
2018-03-03 23:51:09.904595+0100
root@horse:/etc# 

The time from hwclock -u is the correct one. Can you please help me understand and solve this issue?

1

There are 1 best solutions below

0
On

Since hwclock -u showed the correct time:

#hwclock -u > date -s
#hwclock -w

This seemed to do the trick. Alternatively :

#date -s M/D/Y +hh:mm
#hwclock -w