Merge pull request #464 from emrysal/hotfix/inclusive-exclusive-should-be-other-way

This commit is contained in:
Peer_Rich 2021-08-17 06:12:00 +02:00 committed by GitHub
commit 52ca44a3a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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