Dashboard: Build-Timestamp als lesbares Datum formatiert (TT.MM.JJJJ HH:MM)

This commit is contained in:
2026-06-04 10:02:36 +02:00
parent 414fba39c7
commit c5ccfccf3e

View File

@@ -1347,7 +1347,11 @@ function ChangelogModal({ user, toast, onClose, onRead }) {
</div>
<div style={{display:'flex',alignItems:'center',gap:6,flexShrink:0}}>
<span style={{color:'rgba(255,255,255,0.2)',fontFamily:'monospace',fontSize:9}}>
{e.build_time || fmtDate(e.created_at)}
{e.build_time
? (isNaN(Number(e.build_time))
? e.build_time // altes Format: bereits lesbarer String
: new Date(Number(e.build_time)*1000).toLocaleString('de-DE',{timeZone:'Europe/Berlin',day:'2-digit',month:'2-digit',year:'numeric',hour:'2-digit',minute:'2-digit'}))
: fmtDate(e.created_at)}
</span>
{isAdmin && (
<button onClick={()=>del(e.id)}
@@ -1473,7 +1477,7 @@ function Dashboard({ toast, mobile, setActive, unreadMsgs=0, unreadBoard=0, unre
letterSpacing:1, padding:0, textDecoration:'underline dotted',
textUnderlineOffset:3 }}>
{typeof __BUILD_TIME__ !== 'undefined' && __BUILD_TIME__
? `Letzte Versionierung: ${__BUILD_TIME__}` : 'Changelog'}
? `Letzte Versionierung: ${new Date(Number(__BUILD_TIME__)*1000).toLocaleString('de-DE',{timeZone:'Europe/Berlin',day:'2-digit',month:'2-digit',year:'numeric',hour:'2-digit',minute:'2-digit'})}` : 'Changelog'}
</button>
<button onClick={()=>setShowBoard(true)} style={{
position:'relative', background:'rgba(255,255,255,0.04)',