#28717 [NEW]: strtotime() not handling fractions of seconds

From: Date: Wed, 09 Jun 2004 22:31:50 +0000
Subject: #28717 [NEW]: strtotime() not handling fractions of seconds
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60678@lists.php.net to get a copy of this message
From: andy at advancethermal dot com Operating system: WindowsXP PHP version: 4.3.7 PHP Bug Type: Date/time related Bug description: strtotime() not handling fractions of seconds 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 bug report at http://bugs.php.net/?id=28717&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28717&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28717&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28717&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28717&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28717&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28717&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28717&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28717&r=support Expected behavior: http://bugs.php.net/fix.php?id=28717&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28717&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28717&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28717&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28717&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28717&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28717&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28717&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28717&r=float

« previous php.bugs (#60678) next »