mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
13 lines
334 B
Plaintext
13 lines
334 B
Plaintext
|
--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
|