summaryrefslogtreecommitdiffstats
path: root/src/test/test-time-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-11-12 17:52:35 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-13 12:30:22 +0100
commit437f48a471f51ac9dd2697ee3b848a71b4f101df (patch)
treef05a4944d2069c33b52618eea544f9b799414730 /src/test/test-time-util.c
parentnspawn: do not emit any warning when $UNIFIED_CGROUP_HIERARCHY is used (diff)
downloadsystemd-437f48a471f51ac9dd2697ee3b848a71b4f101df.tar.xz
systemd-437f48a471f51ac9dd2697ee3b848a71b4f101df.zip
tree-wide: fix how we set $TZ
According to tzset(3) we need to prefix timezone names with ":". Let's do so hence, to avoid any ambiguities and follow documented behaviour.
Diffstat (limited to 'src/test/test-time-util.c')
-rw-r--r--src/test/test-time-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-time-util.c b/src/test/test-time-util.c
index d05bb61429..a422cc8ddc 100644
--- a/src/test/test-time-util.c
+++ b/src/test/test-time-util.c
@@ -475,7 +475,7 @@ static void test_in_utc_timezone(void) {
assert_se(timezone == 0);
assert_se(daylight == 0);
- assert_se(setenv("TZ", "Europe/Berlin", 1) >= 0);
+ assert_se(setenv("TZ", ":Europe/Berlin", 1) >= 0);
assert_se(!in_utc_timezone());
assert_se(streq(tzname[0], "CET"));
assert_se(streq(tzname[1], "CEST"));