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
+1 -1
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;
}