Serverpuls: Zeitzone in Warnungen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-09-30 12:43:13 +00:00
1 parent 57f235dd36
commit 03af5fcfb8
3 files changed
+15 -7

No files matched your search

+6
View File
@@ -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' })
}