summaryrefslogtreecommitdiffstats
path: root/getdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'getdate.c')
-rw-r--r--getdate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/getdate.c b/getdate.c
index 65d1b99..bca3833 100644
--- a/getdate.c
+++ b/getdate.c
@@ -2505,6 +2505,7 @@ get_date (const char *p, const time_t *now)
tm.tm_hour += yyRelHour;
tm.tm_min += yyRelMinutes;
tm.tm_sec += yyRelSeconds;
+ tm.tm_wday = 0;
/* Let mktime deduce tm_isdst if we have an absolute timestamp,
or if the relative timestamp mentions days, months, or years. */