View | Details | Raw Unified | Return to bug 17983
Collapse All | Expand All

(-)a/C4/Circulation.pm (-2 lines)
Lines 3734-3740 sub CalcDateDue { Link Here
3734
        else { # days
3734
        else { # days
3735
            $dur = DateTime::Duration->new( days => $loanlength->{$length_key});
3735
            $dur = DateTime::Duration->new( days => $loanlength->{$length_key});
3736
        }
3736
        }
3737
	##my $calendar = Koha::DiscreteCalendar->new({ branchcode => $branch, days_mode => $daysmode });
3738
        $datedue = $calendar->addDuration( $datedue, $dur, $loanlength->{lengthunit} );
3737
        $datedue = $calendar->addDuration( $datedue, $dur, $loanlength->{lengthunit} );
3739
        if ($loanlength->{lengthunit} eq 'days') {
3738
        if ($loanlength->{lengthunit} eq 'days') {
3740
            $datedue->set_hour(23);
3739
            $datedue->set_hour(23);
3741
- 

Return to bug 17983