summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug35422.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/date/tests/bug35422.phpt')
-rw-r--r--ext/date/tests/bug35422.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/date/tests/bug35422.phpt b/ext/date/tests/bug35422.phpt
new file mode 100644
index 0000000..8273c75
--- /dev/null
+++ b/ext/date/tests/bug35422.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #35422 (strtotime() does not parse times with UTC as timezone)
+--FILE--
+<?php
+date_default_timezone_set("UTC");
+
+echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 UTC")) . "\n";
+echo date(DATE_ISO8601, strtotime("July 1, 2000 00:00:00 GMT")) . "\n";
+?>
+--EXPECT--
+2000-07-01T00:00:00+0000
+2000-07-01T00:00:00+0000