Skip to content

Commit

Permalink
feat: include end of the last day of the selected period
Browse files Browse the repository at this point in the history
  • Loading branch information
kptdobe committed Dec 13, 2024
1 parent a4dd90e commit a675fc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/oversight/slicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion tools/rum/slicer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit a675fc1

Please sign in to comment.