Hello,
m4c-attack wrote: 2024-04-15 16:35
Code: Select all
$ sudo journalctl -b --grep rtc
[quote]Jan 26 15:48:36 optiplex kernel: rtc_cmos 00:03: RTC can wake from S4
Jan 26 15:48:36 optiplex kernel: rtc_cmos 00:03: registered as rtc0
Jan 26 15:48:36 optiplex kernel: rtc_cmos 00:03: setting system clock to 2023-09-14T20:31:04 UTC (1694723464)
Open to suggestions/feedback!
The real-time clock (RTC) appears to be about a year out of date in your computer:
Code: Select all
Jan 26 15:48:36 optiplex kernel: rtc_cmos 00:03: setting system clock to 2023-09-14T20:31:04 UTC (1694723464)
So you need to set it up. You can do this using operating system tools, but you can also do it easily using the computer's BIOS. After that, the motherboard battery must be able to keep it running, of course.
m4c-attack wrote: 2024-04-15 16:35
Code: Select all
Jan 26 15:48:36 optiplex systemd[1]: RTC configured in localtime, applying delta of -300 minutes to system time.
Apr 14 21:37:20 optiplex systemd-timesyncd[690]: The system is configured to read the RTC time in the local time zone. This mode cannot be fully supported. All system time to RTC updates are disabled.
In your Debian installation, the operating system is configured to interpret the RTC time as "localtime" instead of "UTC" (Greenwich Mean Time, or GMT). This can be caused by a dual-boot installation with other operating systems (such as Windows, see [
1]).
See [
2] for the source code of the message error in systemd.
Therefore, after setting the date and time in the RTC, you will need to configure Debian to interpret the RTC time as UTC, otherwise the RTC time will not be used by systemd to set the "system time clock" at boot time. You can do it changing the last line of /etc/adjtime from:
to:
or you can use the following command (as root) replacing the option "--date" value with the actual date-time (see [3]):
Code: Select all
hwclock --set --date='2024-04-16 23:00:00' --utc
Hope this helps.
note: Please, use
code tags to include commands and/or their logs in the body of a message.
---
[1]
The Debian Administrator's Handbook - 8.9.1. Timezone - Box "System clock, hardware clock"
[2]
https://sources.debian.org/src/systemd/255.4-1/src/core/main.c/?hl=1581#L1581
[3]
https://manpages.debian.org/bookworm/util-linux-extra/hwclock.8.en.html