From b24bdd3126284949f44f6cbf058a7f0f8cd890fc Mon Sep 17 00:00:00 2001 From: TangoCash Date: Tue, 5 Mar 2019 21:50:03 +0100 Subject: [PATCH] fix logic --- src/gui/channellist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 25bb31693..00b865df4 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -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;