ID: 28088
Updated by: [EMAIL PROTECTED]
Reported By: asif at evoknow dot com
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: Red Hat Linux
PHP Version: 4.3.4
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2004-04-21 11:02:01] asif at evoknow dot com
Description:
------------
When a string like "04/04/04 0045" is passed to strtotime(), it
returns -1.
Reproduce code:
---------------
echo "The following line rightly shows the correct date time\r\n";
echo date("m/d/y Hi", strtotime("04/04/04 2345"));
echo "\r\nBut the following line fails to show the correct date
time\r\n";
echo date("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n";
Expected result:
----------------
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
Actual result:
--------------
The following line rightly shows the correct date time
04/04/04 2345
But the following line fails to show the correct date time
01/01/70 0559
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28088&edit=1