show tomorrows events after todays primetime

Origin commit data
------------------
Commit: a250b29b1b
Author: TangoCash <eric@loxat.de>
Date: 2019-03-05 (Tue, 05 Mar 2019)
This commit is contained in:
TangoCash
2019-03-05 21:50:03 +01:00
committed by vanhofen
parent b4eac70b90
commit 9deac95063

View File

@@ -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;