From a675fc17d4e7f86238fcbba354c360a89f85a280 Mon Sep 17 00:00:00 2001 From: kptdobe Date: Fri, 13 Dec 2024 12:17:06 +0100 Subject: [PATCH] feat: include end of the last day of the selected period --- tools/oversight/slicer.js | 2 +- tools/rum/slicer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/oversight/slicer.js b/tools/oversight/slicer.js index 8dee6046..f9a826b5 100644 --- a/tools/oversight/slicer.js +++ b/tools/oversight/slicer.js @@ -317,7 +317,7 @@ async function loadData(config) { const endDate = params.get('endDate') ? `${params.get('endDate')}` : null; if (startDate && endDate) { - dataChunks.load(await loader.fetchPeriod(startDate, endDate)); + dataChunks.load(await loader.fetchPeriod(`${startDate} 00:00:00`, `${endDate} 23:59:59`)); } else if (scope === 'week') { dataChunks.load(await loader.fetchLastWeek(endDate)); } else if (scope === 'month') { diff --git a/tools/rum/slicer.js b/tools/rum/slicer.js index 332ad517..c28aca28 100644 --- a/tools/rum/slicer.js +++ b/tools/rum/slicer.js @@ -273,7 +273,7 @@ async function loadData(config) { const endDate = params.get('endDate') ? `${params.get('endDate')}` : null; if (startDate && endDate) { - dataChunks.load(await loader.fetchPeriod(startDate, endDate)); + dataChunks.load(await loader.fetchPeriod(`${startDate} 00:00:00`, `${endDate} 23:59:59`)); } else if (scope === 'week') { dataChunks.load(await loader.fetchLastWeek(endDate)); } else if (scope === 'month') {