#17988 [Asn->Csd]: strtotime fails to parse timestamp type from postgresql

From: Date: Sat, 16 Aug 2003 20:56:57 +0000
Subject: #17988 [Asn->Csd]: strtotime fails to parse timestamp type from postgresql
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46030@lists.php.net to get a copy of this message
ID: 17988 Updated by: derick@php.net Reported By: jam at newimage dot com -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: redhat 7.3 PHP Version: 4.1.2 Assigned To: derick New Comment: Finally fixed in CVS (PHP 5). The patch included didn't work at all anymore, so I came up with my own version. I might merge this to PHP 4.3.4, but after PHP 4.3.3 has been released. Derick Previous Comments: ------------------------------------------------------------------------ [2002-07-02 09:34:24] sniper@php.net Assigned to Derick. He mumbled something about rewrite.. ------------------------------------------------------------------------ [2002-06-27 15:08:22] jam at newimage dot com the above patch was generated against php-4.2.1 ------------------------------------------------------------------------ [2002-06-27 14:52:15] jam at newimage dot com --- parsedate.y.old Thu Jun 27 14:26:11 2002 +++ parsedate.y Thu Jun 27 14:43:28 2002 @@ -262,4 +262,13 @@ } } + | tUNUMBER ':' tUNUMBER ':' tUNUMBER '.' tUNUMBER tSNUMBER { + yyHour = $1; + yyMinutes = $3; + yySeconds = $5; + yyMeridian = MER24; + yyDSTmode = DSToff; + yyTimezone = - ($8 % 100 + ($8 / 100) * 60); + } + ; ------------------------------------------------------------------------ [2002-06-26 01:26:46] derick@php.net Please submit that patch then so we can include it. Derick ------------------------------------------------------------------------ [2002-06-26 01:05:23] jam at newimage dot com ok. while I believe parsedate.y needs to be updated to handle floating point seconds values (I've done it, it's not hard to patch), I *do* see the value of the documentation you pointed out, and I think I can get the code to work. thank you for your help. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17988 -- Edit this bug report at http://bugs.php.net/?id=17988&edit=1

« previous php.bugs (#46030) next »