From: Ilia Alshanetsky Date: Thu, 14 Apr 2005 13:31:44 +0000 (+0000) Subject: MFB43: Fixed bug #31583 (php_std_date() uses short day names in X-Git-Tag: php-5.0.5RC1~438 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0de390631682d5b1cad77f9868e8f68dadd2e78a;p=php MFB43: Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance mode). --- diff --git a/NEWS b/NEWS index b40b760ebb..6a4d782ca2 100644 --- 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) diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 2e9999bcac..3ac1b7c476 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -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),