From 30bdf6edec8176c68d2ced15cd14cdf0f1e767fd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sat, 21 Jan 2017 16:02:50 +0100 Subject: [PATCH] Bug 17964: Support date formatting Using the KohaDates plugin will allow us to format dates as we want, using the same filters as the ones defined in the KohaDates TT plugin. Signed-off-by: Kyle M Hall Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- C4/Letters.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index 749ce78136..f515fa09e3 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1460,6 +1460,8 @@ sub _process_tt { my $tt_params = { %{ _get_tt_params( $tables ) }, %{ _get_tt_params( $loops, 'is_a_loop' ) } }; + $content = qq|[% USE KohaDates %]$content|; + my $output; $template->process( \$content, $tt_params, \$output ) || croak "ERROR PROCESSING TEMPLATE: " . $template->error(); -- 2.39.5