Skip to content

Scheduling infrastructure for absolutely everyone.

Revert "Fixes #1572 (#1622)" (#1630)

Alex van Andel64f39b0d4705
diff --git a/lib/slots.ts b/lib/slots.ts
index 69656bc6cae..98bc7551b0d 100644
--- a/lib/slots.ts
+++ b/lib/slots.ts
@@ -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.utc(inviteeDate).startOf("day").add(minutes, "minute");
+ const slot = dayjs(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.local());
+ slots.push(slot);
}
}