From: Jaroslav Kysela Date: Fri, 19 Sep 2014 11:19:56 +0000 (+0200) Subject: DVR: timerec - clear the seconds for the scheduling times X-Git-Tag: v4.1~1311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcb1c5a7d1b2265a2d74942bfb375ef359fc2ad8;p=thirdparty%2Ftvheadend.git DVR: timerec - clear the seconds for the scheduling times --- diff --git a/src/dvr/dvr_timerec.c b/src/dvr/dvr_timerec.c index dd07128ee..783560172 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;