From 0ca1503129184bdf98a93dfd50b3a662baea5cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Mummert?= Date: Wed, 4 Nov 2026 17:47:25 +0100 Subject: [PATCH] Show German date format (DD.MM.YYYY) in the event edit form flatpickr now uses an alternative display input with altFormat d.m.Y, typed input is parsed in that format as well. The submitted value stays ISO (Y-m-d), so form handling and validation are unchanged. Co-Authored-By: Claude Opus 5.5 --- contao/templates/frontend/event_edit.html.twig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contao/templates/frontend/event_edit.html.twig b/contao/templates/frontend/event_edit.html.twig index 2a5522c..ed50503 100644 --- a/contao/templates/frontend/event_edit.html.twig +++ b/contao/templates/frontend/event_edit.html.twig @@ -255,9 +255,12 @@ if (typeof window.flatpickr === 'function') { const dateInputs = document.querySelectorAll('input.js-flatpickr-date'); dateInputs.forEach(function (input) { + // Gespeichert wird weiter ISO (Y-m-d); angezeigt und eingegeben wird deutsch (TT.MM.JJJJ) window.flatpickr(input, { locale: 'de', dateFormat: 'Y-m-d', + altInput: true, + altFormat: 'd.m.Y', allowInput: true }); });