summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-10-14 21:27:52 +0000
committerJim Meyering <jim@meyering.net>1998-10-14 21:27:52 +0000
commit082787996c876e1a2db2b2ec6b784069e0a4e145 (patch)
tree388bf2f6a6f7f71a4c47395c7d66b7a89f47c933
parentedef42bf4081dd281f973658bb5593c7ea291942 (diff)
downloadcoreutils-082787996c876e1a2db2b2ec6b784069e0a4e145.tar.xz
Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
instead of "TZ=America/Vancouver". From Paul Eggert.
-rw-r--r--m4/mktime.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/mktime.m4 b/m4/mktime.m4
index 841e3702e..8d89b33df 100644
--- a/m4/mktime.m4
+++ b/m4/mktime.m4
@@ -50,7 +50,12 @@ spring_forward_gap ()
{
/* glibc (up to about 1998-10-07) failed this test) */
struct tm tm;
- putenv ("TZ=America/Vancouver");
+
+ /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
+ instead of "TZ=America/Vancouver" in order to detect the bug even
+ on systems that don't support the Olson extension, or don't have the
+ full zoneinfo tables installed. */
+ putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
tm.tm_year = 98;
tm.tm_mon = 3;
tm.tm_mday = 5;