[Koha-bugs] [Bug 25729] Charges/Fees.t is failing randomly due to wrong comparaison

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 12 18:42:57 CEST 2020


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

--- Comment #1 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Jonathan Druart:
> 201     is( $fees->from_date, dt_from_string(),
> 202         'from_date default set correctly to today' );
> 
> It can be fixed using t::lib::Dates::compare

[...]

> it's the comparaison of 2 datetimes that have not been init at the same time
we assume there are both init in the same second, but that's wrong
the method in t::lib::Dates deals with that comparaison correctly

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


More information about the Koha-bugs mailing list