Default to current time if no time has been entered
This commit is contained in:
parent
3c638dd0e3
commit
ed8f7a02c1
@ -145,7 +145,8 @@ export function StreamEditor({ ev, onFinish, options }: StreamEditorProps) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const startsDate = new Date(parseInt(start ?? "0") * 1000);
|
const startsTimestamp = parseInt(start ?? (new Date() / 1000));
|
||||||
|
const startsDate = new Date(startsTimestamp * 1000);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user