summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-08-07 17:46:18 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-08-07 17:46:18 +0000
commit3bf0b26218cf28192a62a2a9c4f295e0c121219a (patch)
tree02987aa6b77ff364be6a615dfacafe0e5962bc06
parent9db05a36a5e94dcf1e5e30bffd8ae1abe24277d8 (diff)
downloadphp-git-3bf0b26218cf28192a62a2a9c4f295e0c121219a.tar.gz
Tru64 requires TZ values be POSIX styled.
# See http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN3/0247____.HTM for detail.
-rw-r--r--ext/standard/tests/time/002.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/standard/tests/time/002.phpt b/ext/standard/tests/time/002.phpt
index 6051047276..5156842583 100644
--- a/ext/standard/tests/time/002.phpt
+++ b/ext/standard/tests/time/002.phpt
@@ -33,7 +33,12 @@ if (!@putenv("TZ=EST5") || getenv("TZ") != 'EST5') {
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));
}