On Thu 23 Mar 2023 at 21:41:40 (+0000), Albretch Mueller wrote: > I am using this (yes, visually cr@ppy ;-)) code snippet to set back > the time 5 hours. hwclock tells me it worked fine but the terminal > windows opened before and after running hwclock still give me the > "old" time setting?
You're in my time zone, aren't you, so your hardware clock (UTC) should be five hours ahead of the system clock (CDT). What are the two times on your system? # hwclock --verbose hwclock from util-linux 2.36.1 System Time: 1679611469.019755 Trying to open: /dev/rtc0 Using the rtc interface to the clock. Last drift adjustment done at 1650159782 seconds after 1969 Last calibration done at 1650159782 seconds after 1969 Hardware clock is on UTC time Assuming hardware clock is kept in UTC time. Waiting for clock tick... ...got clock tick → Time read from Hardware Clock: 2023/03/23 22:44:30 Hw clock time : 2023/03/23 22:44:30 = 1679611470 seconds since 1969 Time since last adjustment is 29451688 seconds Calculated Hardware Clock drift is 0.000000 seconds → 2023-03-23 17:44:28.998946-05:00 # Cheers, David.