ID: 28717
Updated by: [EMAIL PROTECTED]
Reported By: andy at advancethermal dot com
Status: Wont fix
Bug Type: Date/time related
Operating System: WindowsXP
PHP Version: 4.3.7
New Comment:
Yup the docs for this should be fixed too; but I'll do that after I
fixed the code for PHP 5 ;-)
Previous Comments:
------------------------------------------------------------------------
[2004-06-11 17:20:45] php1 at clayst dot com
OK, won't be fixed is fine, but the docs should be updated. Took me a
while to track this down as I believed the docs that GNU format was the
rule. GNU format allows the decimal seconds.
------------------------------------------------------------------------
[2004-06-10 09:00:25] [EMAIL PROTECTED]
This is fixed for PHP 5, but will not be fixed in PHP 4.
------------------------------------------------------------------------
[2004-06-10 00:31:47] andy at advancethermal dot com
Description:
------------
strtotime() returns -1 for dates in the format yyyy-mm-dd hh:mm:ss.fff
(where .fff represents the fraction of the second)
e.g. strtotime("2004-06-09 17:25:14.333") returns -1
[MSSQL via ODBC returns dates in this format.]
Reproduce code:
---------------
$sv = strtotime("2004-06-09 17:25:14.333");
echo $sv;
Expected result:
----------------
1086819914
Actual result:
--------------
-1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28717&edit=1