Bug 38526: (bug 36822 follow-up): Improve datetime comparison in tests
17:39:54 koha_1 | # Failed test 'updated_on correctly saved on newly created user'
17:39:54 koha_1 | # at t/db_dependent/Auth_with_shibboleth.t line 319.
17:39:54 koha_1 | # Structures begin differing at:
17:39:54 koha_1 | # $got->[0] = '2024-11-19 16:39:30'
17:39:54 koha_1 | # $expected->[0] = '2024-11-19 16:39:29'
17:39:54 koha_1 | # Looks like you failed 1 test of 54.
We must use t::lib::Dates::compare to compare datetimes in tests.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit
ed25a48ccf566bf4a21040a36d25bda8d598c301)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit
3b31cf80c3c2e4a6cbc440cd93b5645d927d5661)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>