From 64f39b0d47056208a12f7f0c40e95b4f5db407ea Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 27 Jan 2022 15:16:38 +0000 Subject: [PATCH] Revert "Fixes #1572 (#1622)" (#1630) This reverts commit 2a77f2c477bc9f8c3c8b07161736b1cd7476e49c. --- lib/slots.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/slots.ts b/lib/slots.ts index 69656bc6..98bc7551 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); } }