summaryrefslogtreecommitdiff
path: root/ttools.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttools.c')
-rw-r--r--ttools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttools.c b/ttools.c
index 168fe63..685f383 100644
--- a/ttools.c
+++ b/ttools.c
@@ -330,7 +330,7 @@ int updateRowByTimer(cDbRow* timerRow, const cTimer* t)
contentOfTag(t, "source", source, 40);
time_t startTime = hhmm2L(t->Start(), t->Day());
- time_t endTime = hhmm2L(t->Stop(), t->Day() + t->Stop() < t->Start() ? tmeSecondsPerDay : 0);
+ time_t endTime = hhmm2L(t->Stop(), t->Day() + t->Stop() < t->Start() ? t->Day() + tmeSecondsPerDay : t->Day());
timerRow->setValue("VDRUUID", Epg2VdrConfig.uuid);
timerRow->setValue("EVENTID", t->Event() ? (long)t->Event()->EventID() : 0);