Bugzilla – Attachment 151969 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: [ALTERNATE] [22.05.x] Add date_to_rfc3339
Bug-33132-2205x-Add-datetorfc3339.patch (text/plain), 1.13 KB, created by
Jonathan Druart
on 2023-06-02 07:10:43 UTC
(
hide
)
Description:
Bug 33132: [ALTERNATE] [22.05.x] Add date_to_rfc3339
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-02 07:10:43 UTC
Size:
1.13 KB
patch
obsolete
>From 832368678ba2eb8354c935371692847a8ecee8cf 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 > >--- > 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 3dae094b8dc..f395e463fe7 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.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 33132
:
147738
|
151969
|
152052