From b5aeab4776ee193055621821053ae88944b6e208 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. --- 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 84d2738004e..7a54fa773a5 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.25.1