From 552abe9b64fe3483fd3f439803d424c8817bc025 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 24 Oct 2024 17:13:34 +0100 Subject: [PATCH] Bug 33736: (follow-up) Rebase fix for changed api date handling Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/circ/pendingbookings.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt index 6e4c63bcac..84cc6294f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingbookings.tt @@ -111,13 +111,17 @@ let fromdate = $("#from"); let isoFrom; if ( fromdate.val() !== '' ) { - isoFrom = fromdate.get(0)._flatpickr.selectedDates[0].toISOString().substring(0,10); + let selectedDate = fromdate.get(0)._flatpickr.selectedDates[0]; + selectedDate.setHours(0, 0, 0, 0); + isoFrom = selectedDate.toISOString(); } let todate = $("#to"); let isoTo; if ( todate.val() !== '' ) { - isoTo = todate.get(0)._flatpickr.selectedDates[0].toISOString().substring(0,10); + let selectedDate = todate.get(0)._flatpickr.selectedDates[0]; + selectedDate.setHours(23, 59, 59, 999); + isoTo = selectedDate.toISOString(); } if ( isoFrom || isoTo ) { -- 2.39.5