From ce86aa6294e0cf7b4a4a7c70bd3bc79ea03bbea3 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Mon, 5 Nov 2007 21:47:36 +0000 Subject: [PATCH] Fix for midnight timers choosing wrong date --- vepgsettimer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vepgsettimer.cc b/vepgsettimer.cc index 4059b11..95c3216 100644 --- a/vepgsettimer.cc +++ b/vepgsettimer.cc @@ -99,9 +99,6 @@ char* VEpgSetTimer::genTimerString() flags = 1; // hard coded active timer flag - btime = localtime((time_t*)&event->time); - strftime(dateString, 19, "%Y-%m-%d", btime); - char* startMarginConfig = vdr->configLoad("Timers", "Start margin"); if (startMarginConfig) { @@ -112,6 +109,7 @@ char* VEpgSetTimer::genTimerString() startTime = event->time - (atoi(startMargin) * 60); btime = localtime(&startTime); + strftime(dateString, 19, "%Y-%m-%d", btime); strftime(startString, 9, "%H%M", btime); char* endMarginConfig = vdr->configLoad("Timers", "End margin"); -- 2.39.5