[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: printf: provide explicit TZ start/end
From: |
Grisha Levit |
Subject: |
[PATCH] tests: printf: provide explicit TZ start/end |
Date: |
Tue, 11 Jun 2024 05:52:56 -0400 |
POSIX says about the TZ variable:
If the dst field is specified and the rule field is not, it is
implementation-defined when the changes to and from DST occur.
musl seems to interpret `TZ=EST5EDT` as having DST always in effect,
causing the tests that rely on the glibc behavior (of defaulting to
America/New_York transition rules) to fail.
---
tests/printf3.sub | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/printf3.sub b/tests/printf3.sub
index 4c54aa12..c5132530 100644
--- a/tests/printf3.sub
+++ b/tests/printf3.sub
@@ -16,7 +16,7 @@ LANG=C
SHELLSTART=$(date +%s)
SECS=1275250155
-export TZ=EST5EDT
+export TZ=EST5EDT,M3.2.0/2,M11.1.0/2
case $SHELLSTART in
*s*) SHELLSTART=$EPOCHSECONDS ; DATESECS=false ;; # take a shot
--
2.45.2
- [PATCH] tests: printf: provide explicit TZ start/end,
Grisha Levit <=