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

--- Comment #3 from David Nind <[email protected]> ---
Created attachment 202657
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202657&action=edit
Bug 41648: Handle parse errors in KohaDates

If dt_from_string throws an exception whilst trying to parse the input,
catch it and return an empty result.

Test plan:
1. Apply patch.
2. Prove t/db_dependent/Template/Plugin/KohaDates.t

Sponsored-by: Open Fifth
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to