|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-26 00:35 UTC] jam at newimage dot com
- postgresql 7.2.1 - php 4.1.2 - redhat 7.3 with all applicable patches - field type: timestamp - strtotime() fails to parse dates of the form "2002-06-25 14:18:48.543728-04" because parsedate.y doesn't know how to handle a floating point seconds value. - according to #postgresql, it is not possible to have a timestamp not print the precision, so the issue needs to be handled by php's parsedate.y. - any other details needed, let me know. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
--- 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); + } + ;