From aa97d73b398a5d55ebfc6d2fedf42ccf8d57f0e7 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Wed, 10 Oct 2001 19:28:05 +0000 Subject: [PATCH] Typo in printf format string was causing all issues to appear in the Previous issues box and not in today's issues. --- C4/Circulation/Circ2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation/Circ2.pm b/C4/Circulation/Circ2.pm index d724fc8cbf..c221fd091a 100755 --- a/C4/Circulation/Circ2.pm +++ b/C4/Circulation/Circ2.pm @@ -662,12 +662,12 @@ sub currentissues { my $crit=''; if ($env->{'todaysissues'}) { my @datearr = localtime(time()); - my $today = (1900+$datearr[5]).sprintf "0%02d", ($datearr[4]+1).sprintf "%02d", $datearr[3]; + my $today = (1900+$datearr[5]).sprintf "%02d", ($datearr[4]+1).sprintf "%02d", $datearr[3]; $crit=" and issues.timestamp like '$today%' "; } if ($env->{'nottodaysissues'}) { my @datearr = localtime(time()); - my $today = (1900+$datearr[5]).sprintf "0%02d", ($datearr[4]+1).sprintf "%02d", $datearr[3]; + my $today = (1900+$datearr[5]).sprintf "%02d", ($datearr[4]+1).sprintf "%02d", $datearr[3]; $crit=" and !(issues.timestamp like '$today%') "; } my $select="select * from issues,items,biblioitems,biblio where -- 2.39.5