summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug36224.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug36224.phpt')
-rw-r--r--ext/date/tests/bug36224.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/date/tests/bug36224.phpt b/ext/date/tests/bug36224.phpt
new file mode 100644
index 0000000..1690f4e
--- /dev/null
+++ b/ext/date/tests/bug36224.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #36224 (date(DATE_ATOM) gives wrong resulsts)
+--FILE--
+<?php
+date_default_timezone_set("Europe/Oslo");
+
+echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56Z')) . "\n";
+echo date(DATE_ATOM, strtotime('2006-01-31T19:23:56')) . "\n";
+
+?>
+--EXPECT--
+2006-01-31T20:23:56+01:00
+2006-01-31T19:23:56+01:00