Kundenansicht neu P2: Bausteine für Projektdetails und Aktivität

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-16 16:53:22 +00:00
1 parent 166188c069
commit e036d24ae5
4 files changed
+268 -1

No files matched your search

+12
View File
@@ -72,6 +72,18 @@ export function fmtTagMonat(wert) {
return t ? `${t.day}.${t.month}.` : ''
}
/** 'HH:MM' in Berliner Zeit; ungültig ''. */
export function fmtUhrzeit(wert) {
const t = berlinTeile(wert, { hour: '2-digit', minute: '2-digit' })
return t ? `${t.hour}:${t.minute}` : ''
}
/** Kalendertag in Berliner Zeit als { j, m, t } (Zahlen); ungültig null. */
export function berlinTag(wert) {
const t = berlinTeile(wert, { day: '2-digit', month: '2-digit', year: 'numeric' })
return t ? { j: Number(t.year), m: Number(t.month), t: Number(t.day) } : null
}
/** Minuten → '2,5 Std.' | '2 Std.' | '0,75 Std.' (Komma, höchstens zwei Stellen). */
export const fmtStd = (minuten) => `${ZAHL_STD.format(Math.round(((Number(minuten) || 0) / 60) * 100) / 100)} Std.`