From f6cd20712d2e788f6d68ade6a58bab96c1e63ce5 Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Tue, 11 Feb 2025 15:35:32 +0100 Subject: [PATCH] fix(frontend): for Past 7 Days range, return an exact 7.00 days timeperiod instead of 7.99 days timeperiod (#3024) --- frontend/app/types/app/period.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/types/app/period.js b/frontend/app/types/app/period.js index bd4338698..4c54dfd80 100644 --- a/frontend/app/types/app/period.js +++ b/frontend/app/types/app/period.js @@ -36,7 +36,7 @@ function getRange(rangeName, offset) { ); case LAST_7_DAYS: return Interval.fromDateTimes( - now.minus({ days: 7 }).startOf("day"), + now.minus({ days: 7 }).endOf("day"), now.endOf("day") ); case LAST_30_DAYS: