A date range that starts and ends at the same time should also be excluded

10-24-fix_date-range_test_fixes
Alex van Andel 2023-10-26 19:07:56 -04:00
parent e7976e29f1
commit 62a63f0eea
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}