[Koha-bugs] [Bug 29403] dt_from_string should fail if passed more data than expected for the format

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 14 15:25:06 CET 2022


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #129393|0                           |1
        is obsolete|                            |
 Attachment #129394|0                           |1
        is obsolete|                            |
 Attachment #129473|0                           |1
        is obsolete|                            |

--- Comment #59 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 129486
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129486&action=edit
Bug 29403: Fix api/v1/patrons.t

t::lib::Dates::compare expects either correct DateTime objects, or a
system formatted datetime strings to be passed.. but as we're testing
the API, we are consistently using RFC3339 strings for date-times and
ISO8601 strings for dates.  We need to therefore pre-process the strings
into DateTime objects for the comparison.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

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


More information about the Koha-bugs mailing list