@@ -, +, @@ --- Koha/Calendar.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Calendar.pm +++ a/Koha/Calendar.pm @@ -150,7 +150,7 @@ sub is_holiday { $dt->truncate( to => 'day' ); my $day = $dt->day; my $month = $dt->month; - if ( exists $self->{day_month_closed_days}->{$month}->{$day} ) { + if ( exists $self->{day_month_closed_days}->{$day}->{$month} ) { return 1; } if ( $self->{exception_holidays}->contains($dt) ) { @@ -208,7 +208,7 @@ sub hours_between { sub _mockinit { my $self = shift; $self->{weekly_closed_days} = [ 1, 0, 0, 0, 0, 0, 0 ]; # Sunday only - $self->{day_month_closed_days} = { 6 => { 16 => 1, } }; + $self->{day_month_closed_days} = { 16 => { 6 => 1, } }; my $dates = []; $self->{exception_holidays} = DateTime::Set->from_datetimes( dates => $dates ); --