From fd0d3e37e4fa5e99b2aba60cdf21a12b0eed865a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 16 Dec 2021 11:22:22 -0300 Subject: [PATCH] Bug 29711: Pass release date in ISO to about.tt This patch makes the date be converted into ISO format so it is correctly handled by the KohaDates TT filter. To test: 1. Point your browser to the about page => FAIL: It explodes: Template process failed: undef error - The given date (2022-05-22T00:00:01) does not match the date format (iso) 2. Apply this patch 3. Restart: $ koha-plack --restart kohadev 4. Repeat 1 => SUCCESS: It doesn't explode, shows the right date! 5. Sign off :-D Signed-off-by: Tomas Cohen Arazi --- about.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/about.pl b/about.pl index 55ffc379fb..3cde0bc637 100755 --- a/about.pl +++ b/about.pl @@ -736,7 +736,15 @@ for my $version ( sort { $a <=> $b } keys %{$teams->{team}} ) { } } else { - $teams->{team}->{$version}->{$role} = DateTime->from_epoch( epoch => $teams->{team}->{$version}->{$role}); + $teams->{team}->{$version}->{$role} = output_pref( + { + dt => DateTime->from_epoch( + epoch => $teams->{team}->{$version}->{$role} + ), + dateformat => 'iso' + } + ); + } } } -- 2.32.0