Dashboard: Build-Timestamp als lesbares Datum formatiert (TT.MM.JJJJ HH:MM)
This commit is contained in:
@@ -1347,7 +1347,11 @@ function ChangelogModal({ user, toast, onClose, onRead }) {
|
|||||||
</div>
|
</div>
|
||||||
<div style={{display:'flex',alignItems:'center',gap:6,flexShrink:0}}>
|
<div style={{display:'flex',alignItems:'center',gap:6,flexShrink:0}}>
|
||||||
<span style={{color:'rgba(255,255,255,0.2)',fontFamily:'monospace',fontSize:9}}>
|
<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>
|
</span>
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<button onClick={()=>del(e.id)}
|
<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',
|
letterSpacing:1, padding:0, textDecoration:'underline dotted',
|
||||||
textUnderlineOffset:3 }}>
|
textUnderlineOffset:3 }}>
|
||||||
{typeof __BUILD_TIME__ !== 'undefined' && __BUILD_TIME__
|
{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>
|
||||||
<button onClick={()=>setShowBoard(true)} style={{
|
<button onClick={()=>setShowBoard(true)} style={{
|
||||||
position:'relative', background:'rgba(255,255,255,0.04)',
|
position:'relative', background:'rgba(255,255,255,0.04)',
|
||||||
|
|||||||
Reference in New Issue
Block a user