parent
2a77f2c477
commit
64f39b0d47
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }
|
||||||
|
|
||||||
const slots: Dayjs[] = [];
|
const slots: Dayjs[] = [];
|
||||||
for (let minutes = getMinuteOffset(inviteeDate, frequency); minutes < 1440; minutes += frequency) {
|
for (let minutes = getMinuteOffset(inviteeDate, frequency); minutes < 1440; minutes += frequency) {
|
||||||
const slot = dayjs.utc(inviteeDate).startOf("day").add(minutes, "minute");
|
const slot = dayjs(inviteeDate).startOf("day").add(minutes, "minute");
|
||||||
// check if slot happened already
|
// check if slot happened already
|
||||||
if (slot.isBefore(startDate)) {
|
if (slot.isBefore(startDate)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -60,7 +60,7 @@ const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
slots.push(slot.local());
|
slots.push(slot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue