[Koha-bugs] [Bug 19532] Recalls for Koha
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 18 09:29:53 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19532
--- Comment #920 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(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.
More information about the Koha-bugs
mailing list