[Koha-bugs] [Bug 19176] Dates comparison fails on slow server
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Aug 26 13:45:50 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19176
Marc Véron <veron at veron.ch> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |veron at veron.ch
--- Comment #2 from Marc Véron <veron at veron.ch> ---
Hi Jonathan
The patch minifies that false positives happen, but IMO the test will still
arbitrarely fail with e.g. following dates:
got: '2017-08-10T20:53:59'
expected: '2017-08-10T20:54:00'
Wouldn't it be safer to calculate the delta and pass the test OK if delta <60
sec?
(Or even introduce a param for the precision that defaults to 60.)
Marc
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list