From 79e4c751f1258a17f0ef537904d554631f2dae2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Sun, 15 Mar 2015 14:26:47 +0100 Subject: [PATCH] Bug 13813 - Remove C4::Dates from patroncards/members-search.pl To test: Apply patch In staffclient go to Home > Tools > Patron card creator Create new batch or edit existing one Click button "Add Item(s)and perform a search in pop-up "Patron search" (patroncards/members-search.pl) Verify that dates in column "Expires on" display correctly. --- patroncards/members-search.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patroncards/members-search.pl b/patroncards/members-search.pl index 0c680a0..1561248 100755 --- a/patroncards/members-search.pl +++ b/patroncards/members-search.pl @@ -26,6 +26,7 @@ use C4::Auth; use C4::Output; use C4::Members; use C4::Debug; +use Koha::DateUtils; my $cgi = CGI->new; @@ -103,7 +104,7 @@ if ($member || $category) { borrowernotes => $results->[$i]{'borrowernotes'}, sort1 => $results->[$i]{'sort1'}, sort2 => $results->[$i]{'sort2'}, - dateexpiry => C4::Dates->new($results->[$i]{'dateexpiry'},'iso')->output('syspref'), + dateexpiry => output_pref({ dt => dt_from_string( $results->[$i]{'dateexpiry'} , 'iso' ), dateonly => 1 }), ); push(@resultsdata, \%row); } -- 1.7.10.4