]> granicus.if.org Git - php/commitdiff
- Fixed bug #36599 (DATE_W3C format constant incorrect).
authorDerick Rethans <derick@php.net>
Fri, 3 Mar 2006 07:52:55 +0000 (07:52 +0000)
committerDerick Rethans <derick@php.net>
Fri, 3 Mar 2006 07:52:55 +0000 (07:52 +0000)
NEWS
ext/date/php_date.c

diff --git a/NEWS b/NEWS
index cc205f152c2c3b84f29293947943810b9f95f58a..0acb4b88cfa35a071e6472d128bbc905454e43f7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,7 @@ PHP                                                                        NEWS
 - Fixed tiger hash algorithm generating wrong results on big endian platforms.
   (Mike)
 - Fixed crash with DOMImplementation::createDocumentType("name:"). (Mike)
+- Fixed bug #36599 (DATE_W3C format constant incorrect). (Derick)
 - Fixed bug #36510 (strtotime() fails to parse date strings with tabs). (Ilia,
   Derick)
 - Fixed bug #36459 (Incorrect adding PHPSESSID to links, which contains \r\n).
index 17e160f603e3b77761654182fbc3f7ca235268e8..eb94dbe8ca2e26a83d825c1bdd38d0cc00e3e79a 100644 (file)
@@ -270,7 +270,7 @@ PHP_MINIT_FUNCTION(date)
        REGISTER_STRING_CONSTANT("DATE_RFC1123", DATE_FORMAT_RFC1123, CONST_CS | CONST_PERSISTENT);
        REGISTER_STRING_CONSTANT("DATE_RFC2822", DATE_FORMAT_RFC2822, CONST_CS | CONST_PERSISTENT);
        REGISTER_STRING_CONSTANT("DATE_RSS",     DATE_FORMAT_RFC1123, CONST_CS | CONST_PERSISTENT);
-       REGISTER_STRING_CONSTANT("DATE_W3C",     DATE_FORMAT_ISO8601, CONST_CS | CONST_PERSISTENT);
+       REGISTER_STRING_CONSTANT("DATE_W3C",     DATE_FORMAT_RFC3339, CONST_CS | CONST_PERSISTENT);
 
        REGISTER_LONG_CONSTANT("SUNFUNCS_RET_TIMESTAMP", SUNFUNCS_RET_TIMESTAMP, CONST_CS | CONST_PERSISTENT);
        REGISTER_LONG_CONSTANT("SUNFUNCS_RET_STRING", SUNFUNCS_RET_STRING, CONST_CS | CONST_PERSISTENT);