Skip to content

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

Ignore time zone in time picker

Luke Vella9c61d34f245f
diff --git a/src/components/forms/poll-options-form/month-calendar/time-picker.tsx b/src/components/forms/poll-options-form/month-calendar/time-picker.tsx
index 665e9041d..803cd024b 100644
--- a/src/components/forms/poll-options-form/month-calendar/time-picker.tsx
+++ b/src/components/forms/poll-options-form/month-calendar/time-picker.tsx
@@ -70,7 +70,7 @@ const TimePicker: React.VoidFunctionComponent<TimePickerProps> = ({
return (
<Listbox
- value={value.toISOString()}
+ value={dayjs(value).format("YYYY-MM-DDTHH:mm:ss")}
onChange={(newValue) => {
onChange?.(new Date(newValue));
}}