Koha-clms/Koha/Template/Plugin
Olivia Reynolds fd24968eb2
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 <david@davidnind.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-21 14:31:47 +00:00
..
AdditionalContents.pm
…
Asset.pm
…
AudioAlerts.pm
…
AuthClient.pm Bug 37711: (follow-up) Fix AuthClient plugin database upgrade handling 2025-11-05 07:12:33 -07:00
AuthorisedValues.pm
…
Biblio.pm
…
Branches.pm
…
Categories.pm
…
CirculationRules.pm
…
ClassSources.pm
…
Context.pm
…
Desks.pm
…
ExtendedAttributeTypes.pm
…
Frameworks.pm
…
HtmlId.pm
…
HtmlScrubber.pm
…
HtmlTags.pm
…
I18N.pm
…
Item.pm Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
ItemTypes.pm
…
JSConsents.pm
…
Koha.pm Bug 41107: (follow-up) Use Koha::Status in Koha::Template::Plugin::Koha 2026-03-23 09:33:54 +01:00
KohaDates.pm Bug 41648: Handle parse errors in KohaDates 2026-08-21 14:31:47 +00:00
KohaPlugins.pm Bug 40095: Add context to intranet_js plugin hook 2026-02-06 15:17:36 -07:00
KohaSpan.pm
…
KohaTimes.pm
…
Languages.pm
…
NoticeTemplates.pm Bug 39781: (QA follow-up) Fix crashes, dead code and add tests 2026-03-24 15:38:09 +01:00
Notices.pm
…
Price.pm
…
Registers.pm
…
Remove_MARC_punctuation.pm
…
SafeURL.pm
…
TablesSettings.pm
…
To.pm
…
noop.pm Bug 42136: prevent cgi, directory, and file plugins from use in user-entered templates 2026-04-28 15:48:20 -06:00
raw.pm
…