From 1c2336f185a415e00090b347ddbcadd810152081 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 16 Oct 2025 09:29:22 +0000 Subject: [PATCH] Bug 31149: Add dayjs plugins It seems dayjs is now being imported twice? With the second time overriding the first, but without the plugins. This patch "fixes" the issue by proving this, but there is likely a better solution than this copy-paste from js-date-format.inc --- koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc index cd498a00c6d..2ba706d304d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc @@ -38,12 +38,18 @@ [% Asset.js("lib/dayjs/dayjs.min.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 %] [% Asset.js("js/calendar.js") | $raw %] [% Asset.js("lib/flatpickr/flatpickr.min.js") | $raw %] [% Asset.js("lib/flatpickr/shortcut-buttons-flatpickr.min.js") | $raw %] [% Asset.js("lib/maskito/maskito.core.js") | $raw %] [% Asset.js("lib/maskito/maskito.kit.js") | $raw %]