ID: 27551 Updated by: [EMAIL PROTECTED] Reported By: daniele at orlandi dot com -Status: Open +Status: Closed Bug Type: Date/time related Operating System: SuSE Linux 9.0 PHP Version: 4.3.5RC3 New Comment:
This is already fixed (Added) in PHP 5, but as we classify it as a new feature we will not merge it back to PHP 4.3. regards, Derick Previous Comments: ------------------------------------------------------------------------ [2004-03-11 12:13:08] daniele at orlandi dot com Mmmh... do you really need an example script to test a function for two given values? :) Well... here is it: <? echo "2004-03-11 18:16:07.755155+01 = " .strtotime("2004-03-11 18:16:07.755155+01") ."<br />"; echo "2004-03-11 18:16:07+01 = " .strtotime("2004-03-11 18:16:07+01") ."<br />"; ?> Result: 2004-03-11 18:16:07.755155+01 = -1 2004-03-11 18:16:07+01 = 1079025367 Expected result: 2004-03-11 18:16:07.755155+01 = 1079025367 2004-03-11 18:16:07+01 = 1079025367 ------------------------------------------------------------------------ [2004-03-10 13:27:38] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2004-03-10 11:27:35] daniele at orlandi dot com Description: ------------ strtotime fails to parse timestamp returned by PostgreSQL in the default ISO 8601 output due to fractional seconds. This time stamp is not parsed (invalid): 2004-03-10 16:33:17.11403+01 This is correctly parsed: 2004-03-10 16:33:17+01 Fractional part could be ignored but shouldn't make strtotime consider the timestamp as invalid. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27551&edit=1