From 9838e205c4a162ee9ddd7b856f29401f4ee04caa Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 14 Nov 2012 08:02:55 -0500 Subject: [PATCH] Bug 8882 - Hourly circ doesn't work with the calendar Content-Type: text/plain; charset="utf-8" --- Koha/Calendar.pm | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index 2a2e062..eef26e2 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -139,7 +139,8 @@ sub addDate { } sub is_holiday { - my ( $self, $dt ) = @_; + my ( $self, $datetime ) = @_; + my $dt = $datetime->clone(); my $dow = $dt->day_of_week; if ( $dow == 7 ) { $dow = 0; -- 1.7.2.5