From fcb1c5a7d1b2265a2d74942bfb375ef359fc2ad8 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 19 Sep 2014 13:19:56 +0200 Subject: [PATCH] DVR: timerec - clear the seconds for the scheduling times --- src/dvr/dvr_timerec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dvr/dvr_timerec.c b/src/dvr/dvr_timerec.c index dd07128e..78356017 100644 --- a/src/dvr/dvr_timerec.c +++ b/src/dvr/dvr_timerec.c @@ -52,11 +52,13 @@ dvr_timerec_timecorrection(time_t clk, int hm, struct tm *tm) localtime_r(&clk, tm); tm->tm_min = hm % 60; tm->tm_hour = hm / 60; + tm->tm_sec = 0; isdst = tm->tm_isdst; r = mktime(tm); if (tm->tm_isdst != isdst) { tm->tm_min = hm % 60; tm->tm_hour = hm / 60; + tm->tm_sec = 0; r = mktime(tm); } return r;