From 71fa86f1ccc47d06ad078b6193907954b5e5aef2 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 10 May 2015 13:55:09 +0200 Subject: [PATCH] fixed time display bug in displaymenurecordings --- HISTORY | 3 +++ views/displaymenuitemview.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/HISTORY b/HISTORY index 91575c1..79eac05 100644 --- a/HISTORY +++ b/HISTORY @@ -312,3 +312,6 @@ Version 0.4.4 - expanded shifting features Version 0.4.5 + +- added {numtimers} Token to lastrecordings viewelement +- fixed time display bug in displaymenurecordings diff --git a/views/displaymenuitemview.c b/views/displaymenuitemview.c index b1e604e..525af3c 100644 --- a/views/displaymenuitemview.c +++ b/views/displaymenuitemview.c @@ -769,6 +769,8 @@ void cDisplayMenuItemRecordingView::SetTokens(void) { } time_t startTime = event->StartTime(); + if (!startTime) + startTime = usedRecording->Start(); struct tm * sStartTime = localtime(&startTime); intTokens.insert(pair("year", sStartTime->tm_year + 1900)); intTokens.insert(pair("daynumeric", sStartTime->tm_mday));