From 818702e2539e4419f9d11b03095e9b48a93091ce Mon Sep 17 00:00:00 2001 From: Lucas Gass 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