fix(web): compact slo diagnostics timestamp
Some checks failed
CD Pipeline / tests (push) Successful in 1m30s
Code Review / ai-code-review (push) Successful in 12s
CD Pipeline / build-and-deploy (push) Successful in 3m36s
CD Pipeline / post-deploy-checks (push) Failing after 34s

This commit is contained in:
Your Name
2026-06-01 18:21:30 +08:00
parent 4e2189a08f
commit 6cfcbf60ab

View File

@@ -363,12 +363,8 @@ function formatShortDate(value?: string | null): string {
if (!value) return '--'
const date = new Date(value)
if (Number.isNaN(date.getTime())) return '--'
return date.toLocaleString(undefined, {
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
})
const pad = (input: number) => String(input).padStart(2, '0')
return `${pad(date.getMonth() + 1)}/${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`
}
function historyRouteLabel(summary: RemediationHistoryWorkItemSummary): string {