Serverpuls: Zeitzone in Warnungen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57f235dd36
commit
03af5fcfb8
3 files changed
+15
-7
No files matched your search
@@ -89,3 +89,9 @@ export function formatLegendTime(sec) {
|
||||
if (sec === null || sec === undefined) return '–'
|
||||
return F.legend.format(new Date(sec * 1000))
|
||||
}
|
||||
|
||||
// "seit"-Zeitpunkt in Warnungen, immer Berliner Zeit.
|
||||
export function formatSince(ts) {
|
||||
if (!ts) return ''
|
||||
return new Date(ts).toLocaleString('de-DE', { dateStyle: 'short', timeStyle: 'short', timeZone: 'Europe/Berlin' })
|
||||
}
|
||||
Reference in new issue
Block a user