DVR: timerec - clear the seconds for the scheduling times

This commit is contained in:
Jaroslav Kysela 2014-09-19 13:19:56 +02:00
parent 19afc9a017
commit fcb1c5a7d1

View 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;