Skip to content

Scheduling infrastructure for absolutely everyone.

show correct dates (#13309)

Carina Wollendorferde65b8586259
diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx
index 7613047aaab..0ab4c684876 100644
--- a/apps/web/pages/booking/[uid].tsx
+++ b/apps/web/pages/booking/[uid].tsx
@@ -757,7 +757,7 @@ export default function Success(props: PageProps) {
name="email"
id="email"
defaultValue={email}
- className="mr- focus:border-brand-default border-default text-default mt-0 block w-full rounded-none rounded-l-md shadow-sm focus:ring-black sm:text-sm"
+ className="mr- focus:border-brand-default border-default text-default mt-0 block w-full rounded-none rounded-l-md shadow-sm focus:ring-black sm:text-sm"
placeholder="[email protected]"
/>
<Button
@@ -893,10 +893,16 @@ export function RecurringBookings({
{eventType.recurringEvent?.count &&
recurringBookingsSorted.slice(4).map((dateStr: string, idx: number) => (
<div key={idx} className={classNames("mb-2", isCancelled ? "line-through" : "")}>
- {formatToLocalizedDate(dayjs.tz(date, tz), language, "full", tz)}
+ {formatToLocalizedDate(dayjs.tz(dateStr, tz), language, "full", tz)}
<br />
- {formatToLocalizedTime(date, language, undefined, !is24h, tz)} -{" "}
- {formatToLocalizedTime(dayjs(date).add(duration, "m"), language, undefined, !is24h, tz)}{" "}
+ {formatToLocalizedTime(dayjs(dateStr), language, undefined, !is24h, tz)} -{" "}
+ {formatToLocalizedTime(
+ dayjs(dateStr).add(duration, "m"),
+ language,
+ undefined,
+ !is24h,
+ tz
+ )}{" "}
<span className="text-bookinglight">
({formatToLocalizedTimezone(dayjs(dateStr), language, tz)})
</span>