Hey Dumas!
On Wed, 02 Apr 2025 09:19:00 -0500, you wrote:
DW> /etc/localtime is symlinked to the correct timezone until a tzdata
DW> update is received, then it resets it to "Indianapolis."
What is it supposed to be all of the time? I don't think you ever mentioned that.
DW> Yes, it is correct right now. Not sure if it would be if I were to let
DW> tzdata run again.
You may have to in order to get to the bottom of this.
While using or not using systemd may need different routes, this link seems pretty solid for Debian:
https://linuxcapable.com/how-to-set-timezone-on-debian-linux/
If your timezone information is currently correct, you could try to save your current configuration to hardware with:
$ sudo hwclock --systohc
Otherwise, take a look at:
https://wiki.debian.org/TimeZoneChanges
https://wiki.debian.org/DateTime
In the second link, it does mention setting automatically with ntp/ntpd.
As for non-systemd specific stuff, the two wiki links above seem to do things without the use of systemd or sysvinit related stuff.. so maybe that's a better route to get them all sync'd via the same method.
DW> I don't think it is "tzdata's fault," per se, but it very obviously on
DW> my systems has "Indianapolis" saved *somewhere* other than the two
DW> places I would know to look.... /etc/timezone and /etc/localtime... and
DW> I need to find it and quash it. ;)
$ sudo grep -Ril "Indianapolis" /etc
Should find it if it exists.
DW> I have checked in /etc, /var, and a couple of other places for a config
DW> file but don't see one. Someone else suggested running grep on the
DW> contents of /etc and looking for "Indianapolis." I will try that if I
DW> can figure out how to get grep to run on a whole directory?
There's not too many places this could be set that would affect anything. And since it seems the exact same thing is happening on 3 systems, some using systemd and some not, makes it much more vague, but if you're not running some kind of time synchronization, and none of the above suggestions work, that would probably be your answer (ntp/ntpd).
DW> Will ntpd use the hwclock time to determine this, or does it rely on
DW> /etc/localtime? If it uses the latter, I suspect it will be wrong, too.
DW> ;)
Take a look and see, but I believe it sets /etc/timezone, /etc/localtime, and your hardware clock after synchronization,
https://wiki.debian.org/NTP
Less distro specific, but more explanation at
https://www.ntp.org.
I'd bet Devuan and the Raspi wikis probably have something very similar.
NTP is probably one of, if not the most used time synchronization daemon/clients around.
I hope any of that long winded response helps. :)
Regards,
Nick
... Sarcasm: because beating people up is illegal.
--- GoldED+/LNX 1.1.5-b20250401
* Origin: _thePharcyde telnet://bbs.pharcyde.org (Wisconsin) (723:1/1)
þ Synchronet þ _thePharcyde telnet://bbs.pharcyde.org (Wisconsin)