From 4aeb1db91916bc87ae57a0d56aae9f67a0546bfb Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 5 Mar 2019 21:50:03 +0100 Subject: [PATCH] show tomorrows events after todays primetime --- src/gui/channellist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index d06812997..25bb31693 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -181,8 +181,10 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to) { struct tm * timeinfo; timeinfo = localtime(&atime); - timeinfo->tm_hour = 20; - timeinfo->tm_min = 0; + if (timeinfo->tm_hour >=20 && timeinfo->tm_min >= 30) + timeinfo->tm_mday += 1; + timeinfo->tm_hour = 19; + timeinfo->tm_min = 59; atime = mktime(timeinfo); } unsigned int count;