[Koha-bugs] [Bug 29322] Date validation can be sketchy on the API

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 18 12:08:20 CET 2021


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

--- Comment #5 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #4)
> Cannot we teach the validator what is the date format we expect? It's weird
> that it catches some but not all bad formatted dates.

The validator is supposed to expect RFC3339 valid dates. Maybe it is time to
try what happens in newer versions.

In the meantime, we could use a regex instead of telling it is a date-time. I
would (in that case) document on the spec that those regex expect rfc3339
date/date-time to avoid confusion.

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


More information about the Koha-bugs mailing list