Default to current time if no time has been entered

This commit is contained in:
Eric P 2025-01-06 19:55:53 -06:00
parent 3c638dd0e3
commit ed8f7a02c1
No known key found for this signature in database
GPG Key ID: 0B90345D78C4E1CD

View File

@ -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 (
<> <>