diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-08-07 17:46:40 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-08-07 17:46:40 +0000 |
commit | 1560aabbaf58f8f2c8d4a3834e0ab2691bff664e (patch) | |
tree | d9d0c0a59216d7a490dde5f072deb14af29b2cf7 | |
parent | 6ff7c1cedf205df70e909780288b00aa215e4c86 (diff) | |
download | php-git-1560aabbaf58f8f2c8d4a3834e0ab2691bff664e.tar.gz |
MFH(r-1.10): Tru64 requires TZ values be POSIX styled
-rw-r--r-- | ext/standard/tests/time/002.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/standard/tests/time/002.phpt b/ext/standard/tests/time/002.phpt index b542c1b508..1bed70c14c 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=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)); } |