From 8f4810b532aced1d6702473917026989dc5e264e Mon Sep 17 00:00:00 2001 From: jude Date: Fri, 8 Mar 2024 16:36:24 +0000 Subject: [PATCH] Convert to/from timezone --- reminder-dashboard/src/components/Reminder/TimeInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reminder-dashboard/src/components/Reminder/TimeInput.tsx b/reminder-dashboard/src/components/Reminder/TimeInput.tsx index c037c46..823505e 100644 --- a/reminder-dashboard/src/components/Reminder/TimeInput.tsx +++ b/reminder-dashboard/src/components/Reminder/TimeInput.tsx @@ -30,7 +30,7 @@ export const TimeInput = ({ defaultValue, onInput }) => { if (newTime === null) { newTime = DateTime.now().setZone("UTC"); } - setTime(newTime.set(upd)); + setTime(newTime.setZone(timezone).set(upd).setZone("UTC")); }, [time, timezone], );