Bugzilla – Attachment 128627 Details for
Bug 29711
Release date not passed as ISO to about.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29711: Pass release date in ISO to about.tt
Bug-29711-Pass-release-date-in-ISO-to-abouttt.patch (text/plain), 1.45 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-12-16 14:26:29 UTC
(
hide
)
Description:
Bug 29711: Pass release date in ISO to about.tt
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-12-16 14:26:29 UTC
Size:
1.45 KB
patch
obsolete
>From fd0d3e37e4fa5e99b2aba60cdf21a12b0eed865a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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 <tomascohen@theke.io> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29711
: 128627