Kundenseite: Kundenansicht oeffnen, letzter Login, Preview per Einmal-Link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
370724a9a7
commit
fce2f41463
7 files changed
+92
-7
No files matched your search
@@ -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`
|
||||
}
|
||||
Reference in new issue
Block a user