Partially revert timezone change

This commit is contained in:
jude 2024-04-29 08:49:01 +01:00
parent 9f5066f982
commit 6358bc3deb

View File

@ -284,7 +284,11 @@ export const TimeInput = ({ defaultValue, onInput }) => {
onInput={(ev) => {
ev.currentTarget.value === ""
? updateTime(null)
: setTime(DateTime.fromISO(ev.currentTarget.value, { zone: "UTC" }));
: setTime(
DateTime.fromISO(ev.currentTarget.value, { zone: timezone }).setZone(
"UTC",
),
);
}}
></input>
</>