diff --git a/packages/lib/date-ranges.ts b/packages/lib/date-ranges.ts index 93fe63ada0..df0369defa 100644 --- a/packages/lib/date-ranges.ts +++ b/packages/lib/date-ranges.ts @@ -61,7 +61,7 @@ export function processWorkingHours({ const startResult = start.valueOf() > dateFrom.valueOf() ? start : dateFrom; const endResult = end.valueOf() < dateTo.valueOf() ? end : dateTo; - if (startResult > endResult) { + if (startResult >= endResult) { // if an event ends before start, it's not a result. continue; }