From b4780e4a7fd3da1127cfbc13314122a82528f2f0 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Mon, 25 Oct 2021 18:49:49 +0200 Subject: [PATCH] Fix date ranges in datarangepicker (#1940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/db_graph.js | 4 ++-- scripts/pi-hole/js/db_lists.js | 4 ++-- scripts/pi-hole/js/db_queries.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/pi-hole/js/db_graph.js b/scripts/pi-hole/js/db_graph.js index ce5fd6e8..6a71df4c 100644 --- a/scripts/pi-hole/js/db_graph.js +++ b/scripts/pi-hole/js/db_graph.js @@ -30,8 +30,8 @@ $(function () { moment().subtract(1, "days").startOf("day"), moment().subtract(1, "days").endOf("day"), ], - "Last 7 Days": [moment().subtract(6, "days"), moment()], - "Last 30 Days": [moment().subtract(29, "days"), moment()], + "Last 7 Days": [moment().subtract(7, "days"), moment()], + "Last 30 Days": [moment().subtract(30, "days"), moment()], "This Month": [moment().startOf("month"), moment()], "Last Month": [ moment().subtract(1, "month").startOf("month"), diff --git a/scripts/pi-hole/js/db_lists.js b/scripts/pi-hole/js/db_lists.js index b8df039b..3a896e54 100644 --- a/scripts/pi-hole/js/db_lists.js +++ b/scripts/pi-hole/js/db_lists.js @@ -32,8 +32,8 @@ $(function () { moment().subtract(1, "days").startOf("day"), moment().subtract(1, "days").endOf("day"), ], - "Last 7 Days": [moment().subtract(6, "days"), moment()], - "Last 30 Days": [moment().subtract(29, "days"), moment()], + "Last 7 Days": [moment().subtract(7, "days"), moment()], + "Last 30 Days": [moment().subtract(30, "days"), moment()], "This Month": [moment().startOf("month"), moment()], "Last Month": [ moment().subtract(1, "month").startOf("month"), diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index 016ecdc2..aac266e1 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -50,8 +50,8 @@ $(function () { moment().subtract(1, "days").startOf("day"), moment().subtract(1, "days").endOf("day"), ], - "Last 7 Days": [moment().subtract(6, "days"), moment()], - "Last 30 Days": [moment().subtract(29, "days"), moment()], + "Last 7 Days": [moment().subtract(7, "days"), moment()], + "Last 30 Days": [moment().subtract(30, "days"), moment()], "This Month": [moment().startOf("month"), moment()], "Last Month": [ moment().subtract(1, "month").startOf("month"),