From 449f68e20b194861c1c0f15a6657735fd167d620 Mon Sep 17 00:00:00 2001 From: Substancia Date: Sun, 8 Oct 2023 13:35:32 +0530 Subject: [PATCH] fix PR tasks --- src/components/PingChart.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/PingChart.vue b/src/components/PingChart.vue index 6400e3f5a..0f8ee3809 100644 --- a/src/components/PingChart.vue +++ b/src/components/PingChart.vue @@ -68,6 +68,9 @@ export default { const minuteTimeFormat = `${hourTimeFormat}:mm${ this.use12HourTimeFormat ? " A" : "" }`; + const tooltipFormat = `YYYY-MM-DD ${hourTimeFormat}:mm:ss${ + this.use12HourTimeFormat ? " A" : "" + }`; return { responsive: true, maintainAspectRatio: false, @@ -105,7 +108,7 @@ export default { time: { minUnit: "minute", round: "second", - tooltipFormat: "YYYY-MM-DD HH:mm:ss", + tooltipFormat, displayFormats: { minute: minuteTimeFormat, hour: `MM-DD ${minuteTimeFormat}`, @@ -185,7 +188,7 @@ export default { ) ) .map((beat) => { - const x = this.$root.datetime(beat.time, this.use12HourTimeFormat); + const x = this.$root.datetime(beat.time); pingData.push({ x, y: beat.ping,