- channellist: set beginning of primetime to 20:00

This commit is contained in:
TangoCash
2019-03-06 23:15:01 +01:00
committed by Thilo Graf
parent 3229ee387d
commit 7426845feb

View File

@@ -183,8 +183,8 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
timeinfo = localtime(&atime); timeinfo = localtime(&atime);
if ((timeinfo->tm_hour > 20) || (timeinfo->tm_hour == 20 && timeinfo->tm_min >= 30)) if ((timeinfo->tm_hour > 20) || (timeinfo->tm_hour == 20 && timeinfo->tm_min >= 30))
timeinfo->tm_mday += 1; timeinfo->tm_mday += 1;
timeinfo->tm_hour = 19; timeinfo->tm_hour = 20;
timeinfo->tm_min = 59; timeinfo->tm_min = 0;
atime = mktime(timeinfo); atime = mktime(timeinfo);
} }
unsigned int count; unsigned int count;