[Koha-bugs] [Bug 23079] Checkouts page broken because of problems with date calculation (TZAmerica/Sao_Paulo)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Jun 8 21:25:53 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23079
--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
You specific issue could be fixed with:
@ Patron.pm:625 @ sub is_going_to_expire {
return 0 unless $delay;
return 0 unless $self->dateexpiry;
return 0 if $self->dateexpiry =~ '^9999';
- return 1 if dt_from_string( $self->dateexpiry )->subtract( days => $delay
) < dt_from_string->truncate( to => 'day' );
+ return 1
+ if dt_from_string( $self->dateexpiry, undef, 'floating')->subtract( days
=> $delay ) <
+ dt_from_string->truncate( to => 'day' );
return 0;
}
But it will not help much.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list