xref: /PHP-7.4/ext/date/tests/bug28088.phpt (revision 60d195dc)
1--TEST--
2Bug #28088 (strtotime() cannot convert 00 hours")
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7echo "The following line rightly shows the correct date time:\n";
8echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n";
9
10echo "But the following line fails to show the correct date time:\n";
11echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
12?>
13--EXPECT--
14The following line rightly shows the correct date time:
1504/04/04 2345
16But the following line fails to show the correct date time:
1704/04/04 0045
18