From 1fa7504fae3c234f7e15ec2b3e593de77311939c Mon Sep 17 00:00:00 2001 From: David Hill Date: Wed, 26 Mar 2003 16:42:03 +0000 Subject: [PATCH] Changing TZ to match Unix98 standard to make Tru64 happy --- ext/standard/tests/time/002.phpt | 6 +++--- ext/standard/tests/time/idate.phpt | 2 +- ext/standard/tests/time/mktime.phpt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/standard/tests/time/002.phpt b/ext/standard/tests/time/002.phpt index b542c1b508..fdf944b7ba 100644 --- a/ext/standard/tests/time/002.phpt +++ b/ext/standard/tests/time/002.phpt @@ -5,7 +5,7 @@ strtotime() function if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip Windows does not support dates prior to midnight (00:00:00), January 1, 1970'); } -if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') { +if (!@putenv("TZ=EST5") || getenv("TZ") != 'EST5') { die("skip unable to change TZ enviroment variable\n"); } ?> @@ -28,12 +28,12 @@ if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') { "2001-10-22 21:19:58+0213" ); - putenv ("TZ=GMT"); + putenv ("TZ=GMT0"); foreach ($dates as $date) { echo date ("Y-m-d H:i:s\n", strtotime ($date)); } - putenv ("TZ=US/Eastern"); + putenv ("TZ=EST5"); foreach ($dates as $date) { echo date ("Y-m-d H:i:s\n", strtotime ($date)); } diff --git a/ext/standard/tests/time/idate.phpt b/ext/standard/tests/time/idate.phpt index 403ec6bdbb..485f9804af 100644 --- a/ext/standard/tests/time/idate.phpt +++ b/ext/standard/tests/time/idate.phpt @@ -2,7 +2,7 @@ idate() function --FILE--