]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: timerec - clear the seconds for the scheduling times
authorJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 11:19:56 +0000 (13:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 19 Sep 2014 11:19:56 +0000 (13:19 +0200)
src/dvr/dvr_timerec.c

index dd07128eec92c321f15c5b9fd197ebc4c3c52382..783560172914b81e6e28c9aaaf3fc74f1f212d6c 100644 (file)
@@ -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;