Skip to content

Commit

Permalink
Tru64 requires TZ values be POSIX styled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moriyoshi Koizumi committed Aug 7, 2003
1 parent 9db05a3 commit 3bf0b26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/standard/tests/time/002.phpt
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3bf0b26

Please sign in to comment.