From 1b65ec7c3889e98c0e8e5684430fe32a42efe1da Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 8 May 2024 09:39:26 +0200 Subject: [PATCH] refs #6877 fix filterdate --- src/filters/dateRange.js | 2 +- src/pages/Item/ItemRequestFilter.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filters/dateRange.js b/src/filters/dateRange.js index d014f57fc..4c0cfe654 100644 --- a/src/filters/dateRange.js +++ b/src/filters/dateRange.js @@ -2,7 +2,7 @@ export default function dateRange(value) { const minHour = new Date(value); minHour.setHours(0, 0, 0, 0); const maxHour = new Date(value); - maxHour.setHours(22, 59, 59, 59); + maxHour.setHours(23, 59, 59, 59); return [minHour, maxHour]; } diff --git a/src/pages/Item/ItemRequestFilter.vue b/src/pages/Item/ItemRequestFilter.vue index 2fbe849d1..2c056acc6 100644 --- a/src/pages/Item/ItemRequestFilter.vue +++ b/src/pages/Item/ItemRequestFilter.vue @@ -192,6 +192,7 @@ const decrement = (paramsObj, key) => { v-model="params.from" @update:model-value="searchFn()" is-outlined + emit-date-format /> @@ -202,6 +203,7 @@ const decrement = (paramsObj, key) => { v-model="params.to" @update:model-value="searchFn()" is-outlined + emit-date-format />