Kundenseite: Kundenansicht oeffnen, letzter Login, Preview per Einmal-Link

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-01 19:44:50 +00:00
1 parent 370724a9a7
commit fce2f41463
7 files changed
+92 -7

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { formatViewLogTime } from './viewLog'
// Letzter Portal-Login eines Kunden (Karte „Portal-Zugang“). Rein, unter Node testbar.
/** ISO-Zeit -> "dd.mm.yyyy, hh:mm Uhr" in deutscher Zeit; ohne Login "noch nie". */
export function formatLastLogin(iso) {
if (!iso) return 'noch nie'
const [day, time] = formatViewLogTime(iso).split(' ')
return `${day}, ${time} Uhr`
}