summaryrefslogtreecommitdiff
path: root/ext/date/tests/date.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/date.phpt')
-rw-r--r--ext/date/tests/date.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/tests/date.phpt b/ext/date/tests/date.phpt
index ccdb3cda9..12bc9f0fc 100644
--- a/ext/date/tests/date.phpt
+++ b/ext/date/tests/date.phpt
@@ -3,13 +3,13 @@ date() function
--FILE--
<?php
$tmp = "cr";
-putenv ("TZ=GMT0");
+date_default_timezone_set('UTC');
for($a = 0;$a < strlen($tmp); $a++){
echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";
}
-putenv ("TZ=MET");
+date_default_timezone_set("MET");
for($a = 0;$a < strlen($tmp); $a++){
echo $tmp[$a], ': ', date($tmp[$a], 1043324459)."\n";