diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 36de532e1e6..29ea203580c 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -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,