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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 622-628 sub is_going_to_expire { Link Here
622
    return 0 unless $delay;
622
    return 0 unless $delay;
623
    return 0 unless $self->dateexpiry;
623
    return 0 unless $self->dateexpiry;
624
    return 0 if $self->dateexpiry =~ '^9999';
624
    return 0 if $self->dateexpiry =~ '^9999';
625
    return 1 if dt_from_string( $self->dateexpiry )->subtract( days => $delay ) < dt_from_string->truncate( to => 'day' );
625
    return 1 if dt_from_string( $self->dateexpiry, undef, 'floating' )->subtract( days => $delay ) < dt_from_string(undef, undef, 'floating')->truncate( to => 'day' );
626
    return 0;
626
    return 0;
627
}
627
}
628
628
(-)a/acqui/duplicate_orders.pl (-1 / +1 lines)
Lines 74-80 my $to_placed_on = Link Here
74
74
75
unless ( $input->param('from') ) {
75
unless ( $input->param('from') ) {
76
    # Fill the form with year-1
76
    # Fill the form with year-1
77
    $from_placed_on->subtract( years => 1 );
77
    $from_placed_on->set_time_zone('floating')->subtract( years => 1 );
78
}
78
}
79
$filters->{from_placed_on} =
79
$filters->{from_placed_on} =
80
  output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ),
80
  output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ),
(-)a/acqui/histsearch.pl (-2 / +1 lines)
Lines 94-100 my $from_placed_on = eval { dt_from_string( scalar $input->param('from') ) } || Link Here
94
my $to_placed_on   = eval { dt_from_string( scalar $input->param('to')   ) } || dt_from_string;
94
my $to_placed_on   = eval { dt_from_string( scalar $input->param('to')   ) } || dt_from_string;
95
unless ( $input->param('from') ) {
95
unless ( $input->param('from') ) {
96
    # Fill the form with year-1
96
    # Fill the form with year-1
97
    $from_placed_on->subtract( years => 1 );
97
    $from_placed_on->set_time_zone('floating')->subtract( years => 1 );
98
}
98
}
99
$filters->{from_placed_on} = output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ),
99
$filters->{from_placed_on} = output_pref( { dt => $from_placed_on, dateformat => 'iso', dateonly => 1 } ),
100
$filters->{to_placed_on} = output_pref( { dt => $to_placed_on, dateformat => 'iso', dateonly => 1 } ),
100
$filters->{to_placed_on} = output_pref( { dt => $to_placed_on, dateformat => 'iso', dateonly => 1 } ),
101
- 

Return to bug 23079