1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-11 15:32:52 +02:00

Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"

instead of "TZ=America/Vancouver".  From Paul Eggert.
This commit is contained in:
Jim Meyering
1998-10-14 21:27:52 +00:00
parent edef42bf40
commit 082787996c

View File

@@ -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;