Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: timerec - clear the seconds for the scheduling times
  • Loading branch information
perexg committed Sep 19, 2014
1 parent 19afc9a commit fcb1c5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dvr/dvr_timerec.c
Expand Up @@ -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;
Expand Down

0 comments on commit fcb1c5a

Please sign in to comment.