mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
fix logic
This commit is contained in:
@@ -181,7 +181,7 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
|
|||||||
{
|
{
|
||||||
struct tm * timeinfo;
|
struct tm * timeinfo;
|
||||||
timeinfo = localtime(&atime);
|
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_mday += 1;
|
||||||
timeinfo->tm_hour = 19;
|
timeinfo->tm_hour = 19;
|
||||||
timeinfo->tm_min = 59;
|
timeinfo->tm_min = 59;
|
||||||
|
Reference in New Issue
Block a user