fix(web): compact slo diagnostics timestamp
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user