From ca37744455ec7849abeffa7ee549f62208d7c906 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 4 Nov 2022 12:13:43 +0100 Subject: [PATCH] Bug 30718: Fix curbside pickups No slots are displayed without this patch Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt index dd1b972442..62bb1c2b0e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt @@ -554,7 +554,7 @@ var currentDate = $(this).val(); - let selectedDate = dayjs(currentDate, get_dateformat_str(dateformat_pref).toUpperCase()); + let selectedDate = dayjs(currentDate); let pickupSlots = []; let available_count = 0; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 0e87b9b4c2..3760c79b30 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -363,7 +363,7 @@ let branchcode = $("#pickup-branch").val(); let policy = policies[branchcode]; - let selectedDate = dayjs(currentDate, get_dateformat_str(dateformat_pref).toUpperCase()); + let selectedDate = dayjs(currentDate); let pickupSlots = []; let available_count = 0; -- 2.39.5