This commit is contained in:
Matthias Hochmeister
2026-03-16 15:47:11 +01:00
parent a04577ac9e
commit 41f45acd1c
2 changed files with 12 additions and 7 deletions

View File

@@ -1519,10 +1519,11 @@ function VeranstaltungFormDialog({
onChange={(e) => {
const raw = e.target.value;
if (!raw) return;
const iso = form.ganztaegig
? new Date(raw + 'T00:00:00').toISOString()
: new Date(raw).toISOString();
handleChange('datum_von', iso);
const d = form.ganztaegig
? new Date(raw + 'T00:00:00')
: new Date(raw + ':00');
if (isNaN(d.getTime())) return;
handleChange('datum_von', d.toISOString());
}}
InputLabelProps={{ shrink: true }}
fullWidth
@@ -1538,9 +1539,12 @@ function VeranstaltungFormDialog({
onChange={(e) => {
const raw = e.target.value;
if (!raw) return;
const iso = form.ganztaegig
? new Date(raw + 'T23:59:00').toISOString()
: new Date(raw).toISOString();
const d = form.ganztaegig
? new Date(raw + 'T23:59:00')
: new Date(raw + ':00');
if (isNaN(d.getTime())) return;
handleChange('datum_bis', d.toISOString());
}}
handleChange('datum_bis', iso);
}}
InputLabelProps={{ shrink: true }}