Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 50187  / 1 Year ago, thu, march 2, 2023, 3:18:32

My hardware clock keeps going out of sync. I set it to system time a few times, but it keeps going back to a 5hrs ahead state.



Is this normal? Could it make trouble? How come my system clock is functioning properly when my hardware clock isn't?


More From » time

 Answers
5

The system clock gets set to either UTC or Local based on the last option used when the hwclock function was run. If you run:



hwclock -w --localtime


This should write your system clock to local time instead of UTC and should subsequently set it and read it at boot using local time. If you manually set your system clock and the hwclock was last specified with UTC then it will automatically set it back to UTC.


[#36186] Saturday, March 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
imonove

Total Points: 82
Total Questions: 113
Total Answers: 106

Location: Saint Vincent and the Grenadines
Member since Wed, Nov 3, 2021
3 Years ago
;