From c5af6ec2d68db515c89be992a8acb0f7faf53c0b Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 25 Oct 2005 12:39:52 +0000 Subject: [PATCH] minor bugfix : showing date in format from systempreferences --- circ/returns.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index cf9be2d029..ea34ad533a 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -26,6 +26,7 @@ use strict; use CGI; use C4::Circulation::Circ2; +use C4::Date; use C4::Search; use C4::Output; use C4::Print; @@ -373,7 +374,7 @@ if ($borrower) { my ($iteminformation) = getiteminformation( \%env, $item->{'itemnumber'}, 0 ); my %overdueitem; - $overdueitem{duedate} = $item->{'date_due'}; + $overdueitem{duedate} = format_date($item->{'date_due'}); $overdueitem{biblionum} = $iteminformation->{'biblionumber'}; $overdueitem{barcode} = $iteminformation->{'barcode'}; $overdueitem{title} = $iteminformation->{'title'}; @@ -429,7 +430,7 @@ foreach ( sort { $a <=> $b } keys %returneditems ) { $datearr[5] . '-' . sprintf( "%0.2d", ( $datearr[4] + 1 ) ) . '-' . sprintf( "%0.2d", $datearr[3] ); - $ri{duedate}=$duedate; + $ri{duedate}=format_date($duedate); my ($borrower) = getpatroninformation( \%env, $riborrowernumber{$_}, 0 ); $ri{bornum} = $borrower->{'borrowernumber'}; -- 2.39.5