Fixed a bug that selected the following day on the booking page, when the selected time is smaller than the utc offset of the current timezone. Also fixed the reloading of the last 24h/12h selection

This commit is contained in:
Malte Delfs committed 2021-07-11 18:05:49 +02:00
1 parent 36b258f4b7
commit 3283eb422c
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ const getSlots = ({
)
.reduce((slots, boundary: Boundary) => [...slots, ...getSlotsBetweenBoundary(frequency, boundary)], [])
.map((slot) =>
slot.month(inviteeDate.month()).date(inviteeDate.date()).utcOffset(inviteeDate.utcOffset())
slot.utcOffset(inviteeDate.utcOffset()).month(inviteeDate.month()).date(inviteeDate.date())
);
};
+1
View File
@@ -25,6 +25,7 @@ export default function Type(props): Type {
const telemetry = useTelemetry();
useEffect(() => {
handleToggle24hClock(localStorage.getItem("timeOption.is24hClock") === "true");
telemetry.withJitsu((jitsu) => jitsu.track(telemetryEventTypes.pageView, collectPageParameters()));
}, [telemetry]);