https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19532
--- Comment #920 from Jonathan Druart <[email protected]> --- (In reply to Fridolin Somers from comment #919) > Failures appears on several runs : > https://jenkins.koha-community.org/view/master/job/Koha_Master_U21/115/ > > I think it comes from DT comparison : > > my $expected_due_date = dt_from_string->add( days => 3 ); > is( dt_from_string( $recall->checkout->date_due ), $expected_due_date, > "Checkout due date has correctly been extended by recall_due_date_interval > days" ); > is( $due_date, $expected_due_date, "Due date correctly returned" ); > > $recall->checkout->date_due is a date in ISO string, compare to a DateTime > object. > > How is it in other places ? The error is: 23:08:40 koha_1 | # got: '2022-03-20T22:08:39' 23:13:07 koha_1 | # expected: '2022-03-20T22:08:40' You need to compare dates using t::lib::Dates::compare -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
