Bugzilla – Attachment 145104 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.46 KB, created by
Kyle M Hall (khall)
on 2023-01-06 19:39:11 UTC
(
hide
)
Description:
Bug 30310: Fix date_to_rfc3339
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-01-06 19:39:11 UTC
Size:
1.46 KB
patch
obsolete
>From 714e51a6c50f95b8bbbcde6915079d894d426398 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. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 84d2738004..7a54fa773a 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.30.2
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