fix: Lock time-zone not working properly (#19152)
Post release / release (push) Canceled after 0s

* fix: flaky test organization.spec

* fix
This commit is contained in:
Anik Dhabal Babu
2025-02-07 13:55:58 +00:00
committed by GitHub
parent 4671ffc4f4
commit 87f02f5588
@@ -10,6 +10,7 @@ import { SeatsAvailabilityText } from "@calcom/features/bookings/components/Seat
import { EventMetaBlock } from "@calcom/features/bookings/components/event-meta/Details";
import { useTimePreferences } from "@calcom/features/bookings/lib";
import type { BookerEvent } from "@calcom/features/bookings/types";
import { CURRENT_TIMEZONE } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { markdownToSafeHTMLClient } from "@calcom/lib/markdownToSafeHTMLClient";
import type { EventTypeTranslation } from "@calcom/prisma/client";
@@ -219,7 +220,7 @@ export const EventMeta = ({
indicatorsContainer: () => "ml-auto",
container: () => "max-w-full",
}}
value={timezone}
value={event.lockTimeZoneToggleOnBookingPage ? CURRENT_TIMEZONE : timezone}
onChange={({ value }) => {
setTimezone(value);
setBookerStoreTimezone(value);