summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug35422.phpt
blob: 8273c75411763505b392fe8c11ca5fd61ffaa3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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