From:             daniele at orlandi dot com
Operating system: SuSE Linux 9.0
PHP version:      4.3.5RC3
PHP Bug Type:     Date/time related
Bug description:  strtotime fails to parse ISO 8601 timestamps with fractional seconds

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 bug report at http://bugs.php.net/?id=27551&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27551&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27551&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27551&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27551&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27551&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27551&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27551&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27551&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27551&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27551&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27551&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27551&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27551&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27551&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27551&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27551&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27551&r=float

Reply via email to