]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: stop assigning colon prefixed timezone to $TZ 39160/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 28 Sep 2025 01:19:08 +0000 (10:19 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 28 Sep 2025 02:14:00 +0000 (11:14 +0900)
commit8431368668d59f768e8a8ec8194490f7db3f1b2e
tree5942ee31f2555cd04445a01b11af7df632ab7d23
parent7d6f1d695c5760d6eb403a1829e6b0cc7e9b0ed8
tree-wide: stop assigning colon prefixed timezone to $TZ

glibc (and also musl, though we do not officially support it yet)
silently ignores colon prefix in $TZ. Let's always not prefix the
timezone.

tzset(3) states:
> A nonempty value of TZ can be one of two formats, either of which can
> be preceded by a colon which is ignored.

Addresses https://github.com/systemd/systemd/pull/38876#discussion_r2384347594.
src/basic/time-util.c
src/shared/calendarspec.c
src/test/test-time-util.c
src/timedate/timedatectl.c