diff --git a/frontend/src/tools/nachrichten.jsx b/frontend/src/tools/nachrichten.jsx index 70b72d4..7c1dcc9 100644 --- a/frontend/src/tools/nachrichten.jsx +++ b/frontend/src/tools/nachrichten.jsx @@ -388,7 +388,7 @@ function InfoBox({ color, children }) { } function formatMsgTime(isoStr) { - const d = new Date(isoStr); + const d = new Date((isoStr || '').replace(' ', 'T')); const now = new Date(); const isToday = d.toDateString() === now.toDateString(); const isThisYear = d.getFullYear() === now.getFullYear();