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

--- Comment #2 from Olivia Reynolds <[email protected]> ---
Created attachment 202621
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202621&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

-- 
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