Bugzilla – Attachment 152052 Details for
Bug 33132
Searching by DOB still broken in 22.05.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33132: [22.05.x] Add date_to_rfc3339
Bug-33132-2205x-Add-datetorfc3339.patch (text/plain), 1.19 KB, created by
Lucas Gass
on 2023-06-06 16:23:10 UTC
(
hide
)
Description:
Bug 33132: [22.05.x] Add date_to_rfc3339
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-06-06 16:23:10 UTC
Size:
1.19 KB
patch
obsolete
>From f6ca81ca40689e5d4af23e47c954960134ec3986 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 2 Jun 2023 09:10:13 +0200 >Subject: [PATCH] Bug 33132: [22.05.x] Add date_to_rfc3339 > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/js-date-format.inc | 6 ++++++ > 1 file changed, 6 insertions(+) > >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 3dae094b8d..f395e463fe 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 >@@ -67,6 +67,12 @@ > return m.format(get_time_pattern(timeformat)+(dateformat=='rfc3339'?':ss'+(!m.isUTC()?'Z':''):''))+(dateformat=='rfc3339' && m.isUTC()?'Z':''); > } > >+ window.$date_to_rfc3339 = function(value, options) { >+ var dateformat = (options&&options.dateformat)||def_date_format; >+ let m = moment(value, get_date_pattern(dateformat)); >+ return m.format("YYYY-MM-DD"); >+ } >+ > })(); > </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 33132
:
147738
|
151969
| 152052