pull/1630/head
Daniel McGowan 2022-01-27 06:55:06 -08:00 committed by GitHub
parent c720e4e960
commit 2a77f2c477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }
const slots: Dayjs[] = [];
for (let minutes = getMinuteOffset(inviteeDate, frequency); minutes < 1440; minutes += frequency) {
const slot = dayjs(inviteeDate).startOf("day").add(minutes, "minute");
const slot = dayjs.utc(inviteeDate).startOf("day").add(minutes, "minute");
// check if slot happened already
if (slot.isBefore(startDate)) {
continue;
@ -60,7 +60,7 @@ const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }
)
)
) {
slots.push(slot);
slots.push(slot.local());
}
}