mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Make 4-diogit date RFC 2068 compliant
This commit is contained in:
parent
10f52b4805
commit
99d572ad14
@ -489,8 +489,8 @@ char *php_std_date(time_t t)
|
||||
tm1 = gmtime_r(&t, &tmbuf);
|
||||
str = emalloc(81);
|
||||
if (PG(y2k_compliance)) {
|
||||
snprintf(str, 80, "%s, %02d-%s-%04d %02d:%02d:%02d GMT",
|
||||
day_full_names[tm1->tm_wday],
|
||||
snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
|
||||
day_short_names[tm1->tm_wday],
|
||||
tm1->tm_mday,
|
||||
mon_short_names[tm1->tm_mon],
|
||||
tm1->tm_year+1900,
|
||||
|
Loading…
Reference in New Issue
Block a user