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

@@ -109,6 +109,7 @@ services:
DB_USER: ${POSTGRES_USER:-prod_user} DB_USER: ${POSTGRES_USER:-prod_user}
DB_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required} DB_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
SYNC_HTTP_PORT: 3001 SYNC_HTTP_PORT: 3001
FDISK_DEBUG_HTML: ${FDISK_DEBUG_HTML:-}
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy

View File

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