Re: Linux time goes wrong after changing the time with 'date' cmd

Rob Janssen <chrony-users-Cohe+2zZ/ftmR6Xm/[email protected]>
Newsgroups gmane.comp.time.chrony.user
Organization PE1CHL
Message-ID <[email protected]>
On 2024-05-10 03:43, Feng Tang wrote:
> Add debug hooks in kernel shows, after 'date' command changes system time,
> around 150 seconds later, the chronyd process send 'clock_adjtime' syscalls
> down to kernel with txc mode 'ADJ_TICK | ADJ_FREQUENCY', then the time
> starts to go wrong.
That is not "wrong", that is "right".
Chrony speeds up the clock so it will gradually go back to the correct time,
after you changed it to the wrong time.

command: " date --set '04/24 15:23:10 2024' "

DON'T DO THAT!!!
You have synchronized the clock using chrony, DON'T touch it manually!

Rob


-- 
To unsubscribe email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "unsubscribe" in the subject.
For help email chrony-users-request-kWFZVVI9zxvPqho9SqqRMmD2FQJk+8+b@public.gmane.org 
with "help" in the subject.
Trouble?  Email [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.