[Koha-bugs] [Bug 30030] Test t/db_dependent/Koha/Patrons.t is_going_to_expire fails on U18

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 18 02:36:25 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30030

--- Comment #4 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Looks like this is caused in Koha/DateUtils.pm dt_from_string() by :
https://git.koha-community.org/Koha-community/Koha/src/commit/9c6741cbe3cb00c724a2b2cf4c0efcc723484e87/Koha/DateUtils.pm#L246

my $floating = 0;
...
$dt->set_time_zone($server_tz) unless ( $date_only || $floating );

Call in Koha::Patron->is_going_to_expire is :
dt_from_string( $self->dateexpiry, undef, 'floating' )

Maybe we need to set $floating = 1 in case tz = 'floating' ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list