Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🚑 Fix deleting a date option removes votes for other options

Luke Vellac8fd9d3d5043
diff --git a/apps/web/src/components/poll/manage-poll.tsx b/apps/web/src/components/poll/manage-poll.tsx
index 3a8a463ec..5b1951317 100644
--- a/apps/web/src/components/poll/manage-poll.tsx
+++ b/apps/web/src/components/poll/manage-poll.tsx
@@ -25,7 +25,7 @@ import { useUpdatePollMutation } from "./mutations";
const PollOptionsForm = React.lazy(() => import("../forms/poll-options-form"));
const convertOptionToString = (option: { start: Date; duration: number }) => {
- const start = dayjs(option.start);
+ const start = dayjs(option.start).utc();
return option.duration === 0
? start.format("YYYY-MM-DD")
: `${start.format("YYYY-MM-DDTHH:mm:ss")}/${start