From: asif at evoknow dot com Operating system: Red Hat Linux PHP version: 4.3.4 PHP Bug Type: Date/time related Bug description: strtotime() cannot convert 00 hours
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 bug report at http://bugs.php.net/?id=28088&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28088&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28088&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28088&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28088&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28088&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28088&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28088&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28088&r=support Expected behavior: http://bugs.php.net/fix.php?id=28088&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28088&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28088&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28088&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28088&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28088&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28088&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28088&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28088&r=float