From 03eea72de3973595b4ea03080d083fb31cf4215b Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 17 Aug 2011 10:59:15 +1200 Subject: [PATCH] Bug 5549 - Hourly Loans - Fixing a typo --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 49bd7b2e82..a4c495d5c2 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1735,7 +1735,7 @@ sub MarkIssueReturned { my $query = 'UPDATE issues SET returndate='; my @bind; if ($dropbox_branch) { - my $calendar = Koha->new( branchcode => $dropbox_branch ); + my $calendar = Koha::Calendar->new( branchcode => $dropbox_branch ); my $dropboxdate = $calendar->addDate( DateTime->now( time_zone => C4::Context->tz), -1 ); $query .= ' ? '; push @bind, $dropboxdate->strftimei('%Y-%m-%d %H:%M'); -- 2.39.5