]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format)
authorIlia Alshanetsky <iliaa@php.net>
Mon, 28 Jul 2003 04:02:55 +0000 (04:02 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 28 Jul 2003 04:02:55 +0000 (04:02 +0000)
NEWS
ext/standard/parsedate.y

diff --git a/NEWS b/NEWS
index 044e385392c58dcf4437014ece0692c78992b554..0d797f9325a4daa8a57d3d10f34a44bd654862b7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -61,6 +61,7 @@ PHP 4                                                                      NEWS
 - Fixed bug #21855 (Threading issue on HP-UX). (Roshan Naik, Andi, Moriyoshi)
 - Fixed bug #21074 (Apache2: "ErrorDocument xxx /error.php" broken). (Jani)
 - Fixed bug #19613 (putenv("VAR=") does not empty VAR on win32). (Zeev)
+- Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format). (Ilia)
 - Fixed bug #11924 (ibase_query(), ibase_execute() mangled passed parameters).
   (Jani)
   
index 28ba0cd401b8ed638c5eadf118485023b5856f82..6fe1fb1b13971f19590e99a5c07b2a2901fc9fed 100644 (file)
@@ -260,6 +260,17 @@ date       : tUNUMBER '/' tUNUMBER {
            ((struct date_yy *)parm)->yyMonth = $1;
            ((struct date_yy *)parm)->yyDay = $3;
        }
+       | tMONTH tUNUMBER tUNUMBER ':' tUNUMBER ':' tUNUMBER tUNUMBER {
+               ((struct date_yy *)parm)->yyYear = $8;
+               ((struct date_yy *)parm)->yyMonth = $1;
+               ((struct date_yy *)parm)->yyDay = $2;
+
+               ((struct date_yy *)parm)->yyHour = $3;
+               ((struct date_yy *)parm)->yyMinutes = $5;
+               ((struct date_yy *)parm)->yySeconds = $7;
+
+               ((struct date_yy *)parm)->yyHaveTime = 1;
+       }
        | tUNUMBER '/' tUNUMBER '/' tUNUMBER {
          /* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY.
             The goal in recognizing YYYY/MM/DD is solely to support legacy