]> granicus.if.org Git - php/commitdiff
Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance
authorIlia Alshanetsky <iliaa@php.net>
Thu, 14 Apr 2005 13:30:27 +0000 (13:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 14 Apr 2005 13:30:27 +0000 (13:30 +0000)
mode).

Patch by: mike at php dot net

NEWS
ext/standard/datetime.c

diff --git a/NEWS b/NEWS
index 9c2f3de4851c032cb7e30b61b3631b27217cd47f..0bfcf0d3e42d933bdcf90c8dc2f77dc8a0321954 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ PHP 4                                                                      NEWS
   (Uwe Schindler)
 - Fixed bug #32311 (mb_encode_mimeheader() does not properly escape characters).
   (Moriyoshi)
+- Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance mode).
+  (mike at php dot net)
 
 31 Mar 2005, Version 4.3.11
 - Added Oracle Instant Client support. (cjbj at hotmail dot com, Tony)
index 766857eb7bfd64c1bad30010bf787c40816fb0a9..f5736ca55620370506d41bec7cbdb1974acce5fa 100644 (file)
@@ -781,7 +781,7 @@ char *php_std_date(time_t t TSRMLS_DC)
                                tm1->tm_hour, tm1->tm_min, tm1->tm_sec);
        } else {
                snprintf(str, 80, "%s, %02d-%s-%02d %02d:%02d:%02d GMT",
-                               day_short_names[tm1->tm_wday],
+                               day_full_names[tm1->tm_wday],
                                tm1->tm_mday,
                                mon_short_names[tm1->tm_mon],
                                ((tm1->tm_year) % 100),