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

NEWS
ext/standard/datetime.c

diff --git a/NEWS b/NEWS
index b40b760ebb73a6cbf7f7a13ccb063e9b5dd5d08b..6a4d782ca2d26eb89e2e64af7e3219a02885e4d3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,8 @@ PHP                                                                        NEWS
   longer then the original string). (Ilia)
 - Fixed bug #32491 (File upload error - unable to create a temporary file).
   (Uwe Schindler)
+- Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance 
+  mode). (mike at php dot net)
 - Fixed bug #32282 (Segfault in mysqli_fetch_array on 64-bit) (Georg).
 - Fixed bug #31502 (Wrong deserialization from session when using WDDX
   serializer). (Dmitry) 
index 2e9999bcac9c0e5f10f3acdd3d645347da5fd505..3ac1b7c476111ca17e65b339b8feb2635735c717 100644 (file)
@@ -953,7 +953,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),