From 99384b4c22fe40f808f42c8ea26302b30b05ae33 Mon Sep 17 00:00:00 2001 From: fuyu <54523771+mfmfuyu@users.noreply.github.com> Date: Sat, 7 Mar 2020 00:28:21 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=83=A3=E3=83=BC=E3=83=88=E3=83=AD?= =?UTF-8?q?=E3=82=B0=E3=81=AE=E5=8F=96=E5=BE=97=E7=AF=84=E5=9B=B2=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(#5923)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/chart/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts index f471a9920c..633b8cac8c 100644 --- a/src/services/chart/core.ts +++ b/src/services/chart/core.ts @@ -382,8 +382,8 @@ export default abstract class Chart> { const [y, m, d, h] = this.getCurrentDate(); const gt = - span == 'day' ? subtractTimespan(DateUTC([y, m, d]), range, 'days') : - span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range, 'hours') : + span == 'day' ? subtractTimespan(DateUTC([y, m, d]), range - 1, 'days') : + span == 'hour' ? subtractTimespan(DateUTC([y, m, d, h]), range - 1, 'hours') : null as never; // ログ取得