Detect conflicts when the time is the same as startTime

This commit is contained in:
Alex van Andel 2021-08-14 15:01:05 +00:00
parent 92d3f08f70
commit 03cfd4ba8b

View file

@ -36,7 +36,7 @@ function isAvailable(busyTimes, time, length) {
const endTime = dayjs(busyTime.end); const endTime = dayjs(busyTime.end);
// Check if time is between start and end times // Check if time is between start and end times
if (dayjs(time).isBetween(startTime, endTime)) { if (dayjs(time).isBetween(startTime, endTime, null, "(]")) {
t = false; t = false;
} }