fix logic

This commit is contained in:
TangoCash
2019-03-05 21:50:03 +01:00
committed by Thilo Graf
parent 4aeb1db919
commit b24bdd3126

View File

@@ -181,7 +181,7 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
{
struct tm * timeinfo;
timeinfo = localtime(&atime);
if (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_hour = 19;
timeinfo->tm_min = 59;