From 3cb3c98551a59955cb03eb3721bf939b479ed81e Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 27 Mar 2024 17:30:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=B6=E5=BA=8F?= =?UTF-8?q?=E5=9B=BEx=E8=BD=B4=E5=B1=95=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chart/chart/uplot/chartTimeSeriesMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/chart/chart/uplot/chartTimeSeriesMixin.js b/nezha-fronted/src/components/chart/chart/uplot/chartTimeSeriesMixin.js index 1e247b48c..ac7f6efa5 100644 --- a/nezha-fronted/src/components/chart/chart/uplot/chartTimeSeriesMixin.js +++ b/nezha-fronted/src/components/chart/chart/uplot/chartTimeSeriesMixin.js @@ -526,7 +526,7 @@ export default { // if (window.dataJson) { // offset = new Date().getTimezoneOffset() * -1 / 60 // } - const tData = new Date(value - localOffset + offset * 60 * 1000) + const tData = new Date(value) let hour = tData.getHours() hour = hour > 9 ? hour : '0' + hour // 加0补充为两位数字 let minute = tData.getMinutes()