summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug28088.phpt
blob: 95866e00be4610c6bb1bd180ec2fa53413e7da46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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