On Tue, Jun 18, 2024 at 4:05 AM <tomas@tuxteam.de> wrote:
On Mon, Jun 17, 2024 at 11:54:03PM -0500, David Wright wrote:
[...]
I notice that man timedatectl says:
set-timezone [TIMEZONE]
Set the system time zone to the specified value.
Available timezones can be listed with list-timezones.
If the RTC is configured to be in the local time, this
will also update the RTC time. This call will alter
the /etc/localtime symlink. See localtime(5) for more
information.
I cringe a bit when I see that.
Yeah.. on Linux, it is recommended to keep the RTC clock in UTC.
Unless Windows has contaminated the machine. See <https://wiki.debian.org/DateTime>.
<https://wiki.debian.org/DateTime>.
Reading the link that Walton sent, the only case where RTC clock in UTC is recommended is in the linux/windows dual-boot case. There's no statement
that RTC should be set to UTC besides that. And they say right there why it isn't mentioned: your Debian machine might move around geographically. But
if it doesnt....
Servers in data centers don't move around, they just sit there :-) So in my experience servers running anything non-windows have RTC set to local time. That's been on Red Hat/CentOS, Debian, Ubuntu.
If your system only boots one operating system, and never changes its
default time zone, then it makes no difference whether the RTC is set
to UTC or local time. The OS will use the same assumptions when reading
and writing to the RTC, so everything will remain correct.
Reading the link that Walton sent, the only case where RTC clock in UTC is >recommended is in the linux/windows dual-boot case. There's no statement that >RTC should be set to UTC besides that. And they say right there why it isn't >mentioned: your Debian machine might move around geographically. But if it >doesnt....
Servers in data centers don't move around, they just sit there :-) So in my >experience servers running anything non-windows have RTC set to local time.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 147:51:37 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,737 |