Bugzilla – Attachment 147377 Details for
Bug 32505
Cannot search by dateofbirth in specified dateformat
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32505: Use moment.js for 22.05.x
Bug-32505-Use-momentjs-for-2205x.patch (text/plain), 1.19 KB, created by
Lucas Gass (lukeg)
on 2023-02-24 17:23:34 UTC
(
hide
)
Description:
Bug 32505: Use moment.js for 22.05.x
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-02-24 17:23:34 UTC
Size:
1.19 KB
patch
obsolete
>From 818702e2539e4419f9d11b03095e9b48a93091ce Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 24 Feb 2023 17:22:30 +0000 >Subject: [PATCH] Bug 32505: Use moment.js for 22.05.x > >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index eb7b6426dd..71e6e665c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -327,7 +327,7 @@ > sub_or.push({["me."+attr]:{"like":(search_type == "contain" ? "%" : "" ) + pattern + "%"}}); > if ( attr == 'dateofbirth' ) { > try { >- let d = $date_to_rfc3339(pattern); >+ let d = moment(pattern).format(); > sub_or.push({["me."+attr]:d}); > } catch { > // Hide the warning if the date is not correct >-- >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 32505
:
144922
|
144937
|
145096
|
145135
| 147377