Convert to/from timezone
This commit is contained in:
parent
a5e6c41fa5
commit
8f4810b532
@ -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],
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user