]> granicus.if.org Git - php/commitdiff
Changing TZ to match Unix98 standard to make Tru64 happy
authorDavid Hill <ddhill@php.net>
Wed, 26 Mar 2003 16:42:03 +0000 (16:42 +0000)
committerDavid Hill <ddhill@php.net>
Wed, 26 Mar 2003 16:42:03 +0000 (16:42 +0000)
ext/standard/tests/time/002.phpt
ext/standard/tests/time/idate.phpt
ext/standard/tests/time/mktime.phpt

index b542c1b5081cd1b39ce2d8aa47181b75e22601d9..fdf944b7ba91eea68d6966398b66f8faddc25f49 100644 (file)
@@ -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));
        }
index 403ec6bdbbeb234a9889986d31775538c0531a54..485f9804af74f0a08b23684a46e07e6c9bf280ad 100644 (file)
@@ -2,7 +2,7 @@
 idate() function
 --FILE--
 <?php
-putenv ("TZ=GMT");
+putenv ("TZ=GMT0");
 
 $tmp = "UYzymndjHGhgistwLBIW";
 for($a = 0;$a < strlen($tmp); $a++){
index e0b1fd3f9fb41173508c90344b5fe5198b8a97b4..95d40b9b178cfec96f7328abc318b49bb4683f82 100644 (file)
@@ -3,7 +3,7 @@ mktime()
 --FILE--
 <?php
 $timezones = array(
-    'GMT',
+    'GMT0',
     'GST-1GDT'
 );