From dbcbf5fcd1a7c3636bd8e99f58b7c0ed915bb93c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 Jan 2023 18:16:24 +0100 Subject: [PATCH] Bug 30310: Fix date_to_rfc3339 We need the customParseFormat plugin to provide a custom date format to the dayjs constructor. Found while working on bug 32559, don't remove this function, it will be used later. Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit dded614fa1735f35b0ee34869f5e45b87262382b) Signed-off-by: Matt Blenkinsop --- koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc index 84d2738004..7a54fa773a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc @@ -3,11 +3,13 @@ [% USE Asset %] [% USE KohaDates %] [% Asset.js("lib/dayjs/dayjs.min.js") | $raw %] -[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %] [% Asset.js("lib/dayjs/plugin/utc.js") | $raw %] +[% Asset.js("lib/dayjs/plugin/timezone.js") | $raw %] +[% Asset.js("lib/dayjs/plugin/customParseFormat.js") | $raw %] -- 2.39.5