Bug 21824: Add ability to format dates in various formats in templates
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 13 Nov 2018 16:09:05 +0000 (11:09 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 Nov 2019 08:51:50 +0000 (08:51 +0000)
commit67d6c469a98ec5b39dabfb6c38feaf560727fc6e
treec9f83c4465c1624324c98ea4392934af07fc44b6
parent4764c439f9e19e0b1a88a7503e2bb502dbd3b7ac
Bug 21824: Add ability to format dates in various formats in templates

This patch adds the ability to set a date format for the Template Toolkit filter KohaDates

Test plan:
1) Apply this patch
2) In a template, use the filter param "dateformat => 'iso'"
3) Note the output is in ISO format

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Template/Plugin/KohaDates.pm
t/db_dependent/Template/Plugin/KohaDates.t