A date range that starts and ends at the same time should also be excluded
parent
e7976e29f1
commit
62a63f0eea
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue