From 9e97dbca2983163e1ffc19fc435ac8bea6550c82 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 17 Jul 2020 22:03:28 +0000 Subject: [PATCH] Bug 26013: Fix formatting for dates on "Manage stage MARC records" page MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The "staged" dates were not formatted according to system preferences DateFormat and TimeFormat as the appropriate TT filters were missing. To test: - Stage a record in MARC format - Go to Staged MARC management - Check the date in the list of imports - Click on the import and check the "Staged:" date - Apply patch - Repeat and verify formatting is now correct Signed-off-by: Owen Leonard Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- .../prog/en/modules/tools/manage-marc-import.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index a3edfdf904..0c946594d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE KohaDates %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Manage staged MARC records @@ -107,7 +108,7 @@ <li><span class="label">File name:</span> [% file_name | html %]</li> <li><span class="label">Comments:</span> [% IF ( comments ) %][% comments | html %][% ELSE %](none)[% END %]</li> <li><span class="label">Type:</span> [% IF ( record_type == 'auth' ) %]Authority records[% ELSE %]Bibliographic records[% END %]</li> - <li><span class="label">Staged:</span> [% upload_timestamp | html %]</li> + <li><span class="label">Staged:</span> [% upload_timestamp | $KohaDates with_hours=1 %]</li> <li><span class="label">Status:</span> [% IF ( import_status == 'cleaned' ) %] Cleaned @@ -357,7 +358,7 @@ [% batch_lis.import_status | html %] [% END %] </td> - <td>[% batch_lis.upload_timestamp | html %]</td> + <td>[% batch_lis.upload_timestamp | $KohaDates with_hours=1 %]</td> <td>[% batch_lis.num_records | html %]</td> <td>[% batch_lis.num_items | html %] [% IF ( batch_lis.num_items && batch_lis.import_status == 'imported' ) %] -- 2.39.5