Bugzilla – Attachment 144950 Details for
Bug 30310
Replace Moment.js with Day.js
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30310: Fix date_to_rfc3339
Bug-30310-Fix-datetorfc3339.patch (text/plain), 1.34 KB, created by
Jonathan Druart
on 2023-01-03 17:18:08 UTC
(
hide
)
Description:
Bug 30310: Fix date_to_rfc3339
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-01-03 17:18:08 UTC
Size:
1.34 KB
patch
obsolete
>From b5aeab4776ee193055621821053ae88944b6e208 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 %] > <script> > dayjs.extend(window.dayjs_plugin_utc); > dayjs.extend(window.dayjs_plugin_timezone); >+ dayjs.extend(window.dayjs_plugin_customParseFormat); > </script> > > <!-- js-date-format.inc --> >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30310
:
135495
|
135496
|
135497
|
135498
|
135499
|
136507
|
136508
|
136509
|
136510
|
136511
|
137676
|
137677
|
137678
|
137679
|
141859
|
141860
|
141861
|
141862
|
143172
|
143173
|
144948
|
144950
|
144995
|
144996
|
144997
|
144998
|
144999
|
145000
|
145001
|
145097
|
145098
|
145099
|
145100
|
145101
|
145102
|
145103
|
145104