From 4d999aacfdcf6862ea60edcc9b3106cdb2ea00d4 Mon Sep 17 00:00:00 2001 From: Jamie Banks Date: Fri, 17 Jul 2026 18:14:22 +0100 Subject: [PATCH] feat: add hourly duration formatting to scan history timestamps --- frontend/src/components/ScansHistory.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/ScansHistory.vue b/frontend/src/components/ScansHistory.vue index a6ff18a..9ae93b2 100644 --- a/frontend/src/components/ScansHistory.vue +++ b/frontend/src/components/ScansHistory.vue @@ -87,7 +87,10 @@ const getDuration = (start, end) => { const ms = new Date(end) - new Date(start) const sec = Math.floor(ms / 1000) if (sec < 60) return `${sec}s` - return `${Math.floor(sec / 60)}m ${sec % 60}s` + if (sec < 3600) return `${Math.floor(sec / 60)}m ${sec % 60}s` + const hours = Math.floor(sec / 3600) + const minutes = Math.floor((sec % 3600) / 60) + return `${hours}h ${minutes}m` } const getSeverityCount = (scan, sev) => {