[PATCH] php_std_date() uses short day names in non-y2k_compliance mode
| Bug #31583 | [PATCH] php_std_date() uses short day names in non-y2k_compliance mode | ||||
|---|---|---|---|---|---|
| Submitted: | 2005-01-17 12:43 UTC | Modified: | 2005-04-14 15:33 UTC | ||
| From: | mike@php.net | Assigned: | |||
| Status: | Closed | Package: | Date/time related | ||
| PHP Version: | 4CVS, 5CVS (2005-02-21) | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-01-17 13:25 UTC] mike@php.net
Here's the patch against HEAD: --- php-src/ext/standard/datetime.c 12 Dec 2004 15:50:06 -0000 1.125 +++ php-src/ext/standard/datetime.c 17 Jan 2005 12:14:02 -0000 @@ -957,7 +957,7 @@ 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), ... and PHP4: --- php4/ext/standard/datetime.c 16 Dec 2004 00:10:55 -0000 1.96.2.17 +++ php4/ext/standard/datetime.c 17 Jan 2005 12:24:30 -0000 @@ -781,7 +781,7 @@ 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),[2005-02-21 20:44 UTC] sniper@php.net
[2005-04-14 15:33 UTC] iliaa@php.net