summaryrefslogtreecommitdiff
path: root/ext/date/tests/bug28088.phpt
blob: c310139383520c025c49d08f4e4b9fb2990cfed8 (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")
--INI--
date.timezone=UTC
--FILE--
<?php
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