|
@@ -1676,6 +1676,7 @@ parse_iso_time_(const char *cp, time_t *t, int strict)
|
|
|
st_tm.tm_hour = hour;
|
|
|
st_tm.tm_min = minute;
|
|
|
st_tm.tm_sec = second;
|
|
|
+ st_tm.tm_wday = 0; /* Should be ignored. */
|
|
|
|
|
|
if (st_tm.tm_year < 70) {
|
|
|
char *esc = esc_for_log(cp);
|
|
@@ -1743,6 +1744,7 @@ parse_http_time(const char *date, struct tm *tm)
|
|
|
tm->tm_hour = (int)tm_hour;
|
|
|
tm->tm_min = (int)tm_min;
|
|
|
tm->tm_sec = (int)tm_sec;
|
|
|
+ tm->tm_wday = 0; /* Leave this unset. */
|
|
|
|
|
|
month[3] = '\0';
|
|
|
/* Okay, now decode the month. */
|