From: phpbugs at blackbird dot net dot au Operating system: FreeBSD 5.2.1 PHP version: 4.3.8 PHP Bug Type: Date/time related Bug description: strtotime can't interpret postgres "timestamp" values
Description: ------------ I'm not sure whether this is strictly speaking a bug or a feature request, but strtotime doesn't seem to be able to interpret the output from a PostgreSQL 7.3.3 "timestamp" field. Reproduce code: --------------- <?php $from_postgres = '2004-08-09 14:48:27.304809+10'; echo strtotime($from_postgres); ?> Expected result: ---------------- It should print the unix timestamp for the given date. Actual result: -------------- int(-1) -- Edit bug report at http://bugs.php.net/?id=29595&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29595&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29595&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29595&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29595&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29595&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29595&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29595&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29595&r=support Expected behavior: http://bugs.php.net/fix.php?id=29595&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29595&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29595&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29595&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29595&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29595&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29595&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29595&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29595&r=float
