diff --git a/src/lib/common/hours.c b/src/lib/common/hours.c index 9325c4cc..47ec71d7 100644 --- a/src/lib/common/hours.c +++ b/src/lib/common/hours.c @@ -128,7 +128,7 @@ min_to_next_daytime(int dtime, char *times) if (times) { while (NULL != (times = daytime(times, &dt))) { - if (dt < dtime) + if (dt <= dtime) dt += 24 * 60; /* tomorrow */ if (dt < mindt) mindt = dt;