#29595 [Opn->Asn]: strtotime can't interpret postgres "timestamp" values
| From: | derick@php.net | Date: | Tue, 10 Aug 2004 06:55:03 +0000 |
| Subject: | #29595 [Opn->Asn]: strtotime can't interpret postgres "timestamp" values | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64346@lists.php.net to get a copy of this message | ||
ID: 29595
Updated by: derick@php.net
Reported By: phpbugs at blackbird dot net dot au
-Status: Open
+Status: Assigned
-Bug Type: Date/time related
+Bug Type: Feature/Change Request
Operating System: FreeBSD 5.2.1
PHP Version: 4.3.8
-Assigned To:
+Assigned To: derick
New Comment:
It's a feature request (and this is already working in the new
date/time parsing routines for 5.1.x)
Previous Comments:
------------------------------------------------------------------------
[2004-08-10 07:24:01] phpbugs at blackbird dot net dot au
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 this bug report at http://bugs.php.net/?id=29595&edit=1