mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
18 lines
507 B
Plaintext
18 lines
507 B
Plaintext
|
--TEST--
|
||
|
Bug #28088 (strtotime() cannot convert 00 hours")
|
||
|
--FILE--
|
||
|
<?php
|
||
|
putenv("TZ=GMT");
|
||
|
|
||
|
echo "The following line rightly shows the correct date time:\n";
|
||
|
echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n";
|
||
|
|
||
|
echo "But the following line fails to show the correct date time:\n";
|
||
|
echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
The following line rightly shows the correct date time:
|
||
|
04/04/04 2345
|
||
|
But the following line fails to show the correct date time:
|
||
|
04/04/04 0045
|