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

(-)a/C4/Circulation.pm (-2 lines)
Lines 3791-3797 sub CalcDateDue { Link Here
3791
        else { # days
3791
        else { # days
3792
            $dur = DateTime::Duration->new( days => $loanlength->{$length_key});
3792
            $dur = DateTime::Duration->new( days => $loanlength->{$length_key});
3793
        }
3793
        }
3794
	##my $calendar = Koha::DiscreteCalendar->new({ branchcode => $branch, days_mode => $daysmode });
3795
        $datedue = $calendar->addDuration( $datedue, $dur, $loanlength->{lengthunit} );
3794
        $datedue = $calendar->addDuration( $datedue, $dur, $loanlength->{lengthunit} );
3796
        if ($loanlength->{lengthunit} eq 'days') {
3795
        if ($loanlength->{lengthunit} eq 'days') {
3797
            $datedue->set_hour(23);
3796
            $datedue->set_hour(23);
3798
- 

Return to bug 17983