]> granicus.if.org Git - php/commitdiff
MFH(r-1.10): Tru64 requires TZ values be POSIX styled
authorMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 7 Aug 2003 17:46:40 +0000 (17:46 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Thu, 7 Aug 2003 17:46:40 +0000 (17:46 +0000)
ext/standard/tests/time/002.phpt

index b542c1b5081cd1b39ce2d8aa47181b75e22601d9..1bed70c14cea6921dc7f0f264191fae2f30f4f4c 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=EST") || getenv("TZ") != 'EST') {
        die("skip unable to change TZ enviroment variable\n");
 }
 ?>
@@ -33,7 +33,12 @@ if (!@putenv("TZ=US/Eastern") || getenv("TZ") != 'US/Eastern') {
            echo date ("Y-m-d H:i:s\n", strtotime ($date));
        }
 
-       putenv ("TZ=US/Eastern");
+       if (PHP_OS === "OSF1") {
+               // POSIX style
+               putenv ("TZ=EST5EDT4,M4.1.0,M10.5.0");
+       } else {
+               putenv ("TZ=US/Eastern");
+       }
        foreach ($dates as $date) {
            echo date ("Y-m-d H:i:s\n", strtotime ($date));
        }