Make 4-diogit date RFC 2068 compliant

This commit is contained in:
Zeev Suraski 2000-02-25 16:45:52 +00:00
parent 10f52b4805
commit 99d572ad14

View File

@ -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,