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 <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit dded614fa1)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
d89aff3fb5
commit
dbcbf5fcd1
|
|
@ -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 %]
|
||||
<script>
|
||||
dayjs.extend(window.dayjs_plugin_utc);
|
||||
dayjs.extend(window.dayjs_plugin_timezone);
|
||||
dayjs.extend(window.dayjs_plugin_customParseFormat);
|
||||
</script>
|
||||
|
||||
<!-- js-date-format.inc -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue