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

(-)a/misc/cronjobs/holds_reminder.pl (-2 / +1 lines)
Lines 233-239 foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP Link Here
233
    # If respecting calendar get the correct waiting since date
233
    # If respecting calendar get the correct waiting since date
234
    my $waiting_date;
234
    my $waiting_date;
235
    if( $use_calendar ){
235
    if( $use_calendar ){
236
        my $calendar = Koha::Calendar->new( branchcode => $branchcode );
236
        my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' );
237
        my $duration = DateTime::Duration->new( days => -$days );
237
        my $duration = DateTime::Duration->new( days => -$days );
238
        $waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days
238
        $waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days
239
    } else {
239
    } else {
240
- 

Return to bug 15986