From 7604b27d88389fbff0466affcfca2db134832478 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a250b29b1bdac42410bf60f5ffa6243ce386d105 Author: TangoCash Date: 2019-03-05 (Tue, 05 Mar 2019) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 a1c5badf9..39e59ea7f 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -180,8 +180,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;