From eefa7b13463b6ef83c3682026948296ac2e0636c Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Mon, 27 May 2024 16:52:20 +0800 Subject: [PATCH] style: change chart time to 24-hour format --- frontend/src/components/content_value/ContentServerStatus.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/content_value/ContentServerStatus.vue b/frontend/src/components/content_value/ContentServerStatus.vue index b05dff6..d72dbe6 100644 --- a/frontend/src/components/content_value/ContentServerStatus.vue +++ b/frontend/src/components/content_value/ContentServerStatus.vue @@ -94,7 +94,7 @@ const refreshInfo = async (force) => { const _updateChart = (info) => { let timeLabels = toRaw(cmdRate.value.labels) - timeLabels = timeLabels.concat(dayjs().format('hh:mm:ss')) + timeLabels = timeLabels.concat(dayjs().format('HH:mm:ss')) timeLabels = slice(timeLabels, Math.max(0, timeLabels.length - statusHistory)) // commands per seconds @@ -146,7 +146,7 @@ const _updateChart = (info) => { const _mockChart = () => { const timeLabels = [] for (let i = 0; i < 5; i++) { - timeLabels.push(dayjs().add(5, 'seconds').format('hh:mm:ss')) + timeLabels.push(dayjs().add(5, 'seconds').format('HH:mm:ss')) } // commands per seconds