From 2745fef2930f7913dfdb1898b49bcf2d36c63c3c Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 14 Apr 2005 13:30:27 +0000 Subject: [PATCH] Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance mode). Patch by: mike at php dot net --- NEWS | 2 ++ ext/standard/datetime.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9c2f3de485..0bfcf0d3e4 100644 --- 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) diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 766857eb7b..f5736ca556 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -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), -- 2.50.1