From 155d6424bba6fc527bfc1085cb1d6ef982061124 Mon Sep 17 00:00:00 2001 From: Dicken Date: Thu, 28 May 2026 10:34:39 +0200 Subject: [PATCH] Dateien nach "frontend/src" hochladen --- frontend/src/App.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 4609cfe..c2f7912 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -838,10 +838,11 @@ function Dashboard({ toast, mobile, setActive, unreadMsgs=0 }) {
- GEBAUT {new Date(__BUILD_TIME__).toLocaleDateString('de-DE', - { day:'2-digit', month:'2-digit', year:'numeric' })}{' '} - {new Date(__BUILD_TIME__).toLocaleTimeString('de-DE', - { hour:'2-digit', minute:'2-digit' })} + {(() => { try { + const d = new Date(typeof __BUILD_TIME__ !== 'undefined' ? __BUILD_TIME__ : ''); + if (isNaN(d)) return null; + return `GEBAUT ${d.toLocaleDateString('de-DE',{day:'2-digit',month:'2-digit',year:'numeric'})} ${d.toLocaleTimeString('de-DE',{hour:'2-digit',minute:'2-digit'})}`; + } catch { return null; }})()}
);