From 533df02350bbe0c2c44194b41aa33548972592c6 Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Sun, 22 Jun 2025 06:18:41 +0800 Subject: [PATCH] 1 --- LTEMvcApp/Views/Home/Logs.cshtml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/LTEMvcApp/Views/Home/Logs.cshtml b/LTEMvcApp/Views/Home/Logs.cshtml index 8dad978..13350c5 100644 --- a/LTEMvcApp/Views/Home/Logs.cshtml +++ b/LTEMvcApp/Views/Home/Logs.cshtml @@ -321,11 +321,12 @@ const seconds = Math.floor(remaining / 1000); remaining %= 1000; + const strHours = String(hours).padStart(2, '0'); const strMinutes = String(minutes).padStart(2, '0'); const strSeconds = String(seconds).padStart(2, '0'); const strMs = String(remaining).padStart(3, '0'); - return `${hours}:${strMinutes}:${strSeconds}.${strMs}`; + return `${strHours}:${strMinutes}:${strSeconds}.${strMs}`; } function getDisplayTimestamp(log) { @@ -333,9 +334,9 @@ let title = 'Timestamp from server.'; let note = ''; - if (log && typeof log.timestamp === 'number') { - timestamp = formatDuration(log.timestamp); - title = `Duration from start: ${timestamp} (Raw: ${log.timestamp}ms)`; + if (log && typeof log.Timestamp === 'number') { + timestamp = formatDuration(log.Timestamp); + title = `Duration from start: ${timestamp} (Raw: ${log.Timestamp}ms)`; } else { timestamp = 'Invalid Time'; title = 'Timestamp from server was invalid or missing.';