Convert to/from timezone

This commit is contained in:
jude 2024-03-08 16:36:24 +00:00
parent a5e6c41fa5
commit 8f4810b532

View File

@ -30,7 +30,7 @@ export const TimeInput = ({ defaultValue, onInput }) => {
if (newTime === null) { if (newTime === null) {
newTime = DateTime.now().setZone("UTC"); newTime = DateTime.now().setZone("UTC");
} }
setTime(newTime.set(upd)); setTime(newTime.setZone(timezone).set(upd).setZone("UTC"));
}, },
[time, timezone], [time, timezone],
); );