diff --git a/apps/web/src/app/[locale]/poll/[urlId]/edit-options/page.tsx b/apps/web/src/app/[locale]/poll/[urlId]/edit-options/page.tsx index 932187a3a83..d9e29e07bea 100644 --- a/apps/web/src/app/[locale]/poll/[urlId]/edit-options/page.tsx +++ b/apps/web/src/app/[locale]/poll/[urlId]/edit-options/page.tsx @@ -79,8 +79,7 @@ const Page = () => { date: start.format("YYYY-MM-DD"), }; }), - timeZone: poll.timeZone || undefined, - autoTimeZone: !!poll.timeZone, + timeZone: poll.timeZone ?? "", duration: poll.options[0]?.duration || 60, }, }); @@ -107,6 +106,7 @@ const Page = () => { updatePollMutation( { urlId: poll.adminUrlId, + timeZone: data.timeZone, optionsToDelete: optionsToDelete.map(({ id }) => id), optionsToAdd, }, diff --git a/apps/web/src/components/create-poll.tsx b/apps/web/src/components/create-poll.tsx index dc6b9e24d78..1299987e399 100644 --- a/apps/web/src/components/create-poll.tsx +++ b/apps/web/src/components/create-poll.tsx @@ -18,7 +18,6 @@ import { PollSettingsForm } from "@/components/forms/poll-settings"; import { Trans } from "@/components/trans"; import { useUser } from "@/components/user-provider"; import { setCookie } from "@/utils/cookies"; -import { getBrowserTimeZone } from "@/utils/date-time-utils"; import { usePostHog } from "@/utils/posthog"; import { trpc } from "@/utils/trpc/client"; @@ -48,8 +47,6 @@ export const CreatePoll: React.FunctionComponent = () => { description: "", location: "", view: "month", - autoTimeZone: true, - timeZone: user.timeZone || getBrowserTimeZone(), options: [], hideScores: false, hideParticipants: false, @@ -79,13 +76,13 @@ export const CreatePoll: React.FunctionComponent = () => {