Ignore time zone in time picker

This commit is contained in:
Luke Vella 2022-07-09 11:54:38 +01:00
parent 9f5af53262
commit 9c61d34f24

View file

@ -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));
}}