From e74d6a95554fac60b3cb2006be15c3cda00d98b1 Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Wed, 8 Jan 2025 10:06:52 +0100 Subject: [PATCH] Always use end of time unit for "to" date in range --- powa/static/js/composables/DateRangeService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powa/static/js/composables/DateRangeService.js b/powa/static/js/composables/DateRangeService.js index d95381f8..15430d83 100644 --- a/powa/static/js/composables/DateRangeService.js +++ b/powa/static/js/composables/DateRangeService.js @@ -7,7 +7,7 @@ const defaultTo = "now"; const rawTo = ref(defaultTo); const from = ref(dateMath.parse(defaultFrom)); -const to = ref(dateMath.parse(defaultTo), true); +const to = ref(dateMath.parse(defaultTo, true)); function getUrl(url) { const query = {}; @@ -27,7 +27,7 @@ export function useDateRangeService() { function refresh() { from.value = dateMath.parse(rawFrom.value); - to.value = dateMath.parse(rawTo.value); + to.value = dateMath.parse(rawTo.value, true); } return {