Skip to content

Commit

Permalink
fix: Lock time-zone not working properly (#19152)
Browse files Browse the repository at this point in the history
* fix: flaky test organization.spec

* fix
  • Loading branch information
anikdhabal authored Feb 7, 2025
1 parent 4671ffc commit 87f02f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/features/bookings/Booker/components/EventMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 87f02f5

Please sign in to comment.