summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug43527.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug43527.phpt')
-rw-r--r--ext/date/tests/bug43527.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/date/tests/bug43527.phpt b/ext/date/tests/bug43527.phpt
new file mode 100644
index 0000000..cc69def
--- /dev/null
+++ b/ext/date/tests/bug43527.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #43527 (DateTime created from a timestamp reports environment timezone)
+--FILE--
+<?php
+date_default_timezone_set("Etc/GMT+1");
+$datetime = new DateTime('Fri, 07 Dec 2007 19:05:14 +1000');
+echo $datetime->getTimezone()->getName(), "\n";
+?>
+--EXPECT--
++10:00