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; }})()}
);