@@ -, +, @@ DateFormat-system prefrence --- svc/members/search | 5 +++++ 1 file changed, 5 insertions(+) --- a/svc/members/search +++ a/svc/members/search @@ -24,6 +24,7 @@ use C4::Auth qw( get_template_and_user ); use C4::Output qw( output_with_http_headers ); use C4::Utils::DataTables qw( dt_get_params ); use C4::Utils::DataTables::Members qw( search ); +use Koha::DateUtils qw( output_pref dt_from_string ); my $input = new CGI; @@ -44,6 +45,10 @@ my $branchcode = $input->param('branchcode'); my $searchtype = $input->param('searchtype'); my $searchfieldstype = $input->param('searchfieldstype'); +if ( $searchfieldstype eq "dateofbirth" ) { + $searchmember = output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1}); +} + # variable information for DataTables (id) my $sEcho = $input->param('sEcho'); --