summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-01-29 10:43:42 +0000
committerDmitry Stogov <dmitry@php.net>2008-01-29 10:43:42 +0000
commitc9fd5b3010fc0a09c3cd63ff9013249b2627a17d (patch)
treed0896f925ada507c1a59f347c455afa12ecd117a /ext/date
parentc86f396edfa495562fa0f54c0afcc09af9af0f8f (diff)
downloadphp-git-c9fd5b3010fc0a09c3cd63ff9013249b2627a17d.tar.gz
Fixed test
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/tests/bug43003.phpt2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/date/tests/bug43003.phpt b/ext/date/tests/bug43003.phpt
index 3192d55dda..8070358b95 100644
--- a/ext/date/tests/bug43003.phpt
+++ b/ext/date/tests/bug43003.phpt
@@ -2,6 +2,8 @@
Bug #43003 (Invalid timezone reported for DateTime objects constructed using a timestamp)
--FILE--
<?php
+date_default_timezone_set('Europe/Oslo');
+
$oDateTest = new DateTime("@0", new DateTimeZone(date_default_timezone_get()));
echo $oDateTest->getTimezone()->getName().": " . $oDateTest->format("Y-m-d H:i:s")."\n";