summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index b1ef630..a5e1196 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -485,6 +485,7 @@ long update_time_in_date(long date, unsigned hr, unsigned mn)
localtime_r(&t, &lt);
lt.tm_hour = hr;
lt.tm_min = mn;
+ lt.tm_sec = 0;
new_date = mktime(&lt);
EXIT_IF(new_date == -1, _("error in mktime"));