koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] CVS: koha/C4/Circulation Circ2.pm,1.18,1.19


From: Steve Tonnesen
Subject: [Koha-devel] CVS: koha/C4/Circulation Circ2.pm,1.18,1.19
Date: Wed Oct 10 12:29:05 2001

Update of /cvsroot/koha/koha/C4/Circulation
In directory usw-pr-cvs1:/tmp/cvs-serv25972

Modified Files:
        Circ2.pm 
Log Message:
Typo in printf format string was causing all issues to appear in the
Previous issues box and not in today's issues.


Index: Circ2.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** Circ2.pm    2001/05/09 23:29:00     1.18
--- Circ2.pm    2001/10/10 19:28:05     1.19
***************
*** 663,672 ****
      if ($env->{'todaysissues'}) {
        my @datearr = localtime(time());
!       my $today = (1900+$datearr[5]).sprintf "0%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];
        $crit=" and !(issues.timestamp like '$today%') ";
      }
--- 663,672 ----
      if ($env->{'todaysissues'}) {
        my @datearr = localtime(time());
!       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 "%02d", ($datearr[4]+1).sprintf 
"%02d", $datearr[3];
        $crit=" and !(issues.timestamp like '$today%') ";
      }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]