From ec75793c4c8a35e3ab7e89c7eb989d58ec79c87c 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 --- 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.39.0