Make sure the slots equal the month and date of the invitee so we can check isSame with freebusy

This commit is contained in:
Alex van Andel committed 2021-06-30 15:27:49 +00:00
1 parent 9fe11ea10d
commit bfc7cce688
2 files changed
+8 -4

No files matched your search

+3 -1
View File
@@ -126,7 +126,9 @@ const getSlots = ({
organizerBoundaries(workingHours, inviteeDate, inviteeBounds, organizerTimeZone)
)
.reduce((slots, boundary: Boundary) => [...slots, ...getSlotsBetweenBoundary(frequency, boundary)], [])
.map((slot) => slot.utcOffset(dayjs(inviteeDate).utcOffset()));
.map((slot) =>
slot.month(inviteeDate.month()).date(inviteeDate.date()).utcOffset(inviteeDate.utcOffset())
);
};
export default getSlots;