Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: Fix "could not book the meeting" issue (fix-confirmBookingIssue) (
Browse files Browse the repository at this point in the history
…calcom#12305)

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: GitStart-Cal.com <[email protected]>
  • Loading branch information
3 people authored Nov 9, 2023
1 parent 8c99a2a commit e4b2464
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/lib/date-ranges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ export function processWorkingHours({
const startResult = dayjs.max(start, dateFrom.tz(timeZone));
const endResult = dayjs.min(end, dateTo.tz(timeZone));

const isLater =
startResult.isAfter(endResult, "hour") ||
(startResult.isSame(endResult, "hour") && startResult.isAfter(endResult, "minute"));

if (isLater) {
if (endResult.isBefore(startResult)) {
// if an event ends before start, it's not a result.
continue;
}
Expand Down

0 comments on commit e4b2464

Please sign in to comment.