From 96e43cdecc5a929c07ec5d25b064bb731c7a07b0 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 25 Feb 2019 18:21:26 +0000 Subject: [PATCH] Bug 22411: Date and time in log viewer should respect Test plan: Go to log viewer and show some log -- without patch the date ant time in first column is formatted as yyyy-mm-dd hh:mm -- with patch the date is formatted according to your dateformat system preference Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit dd8749661ce7e48e86fc4eeba3c7c42e0321184e) Signed-off-by: Martin Renvoize (cherry picked from commit f9892cd621e9c1c17dac41771b607119bee05840) Signed-off-by: Jesse Maseto --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index fac11458a6..1f5e1f23be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -2,6 +2,7 @@ [% USE Koha %] [% USE AuthorisedValues %] [% USE Branches %] +[% USE KohaDates %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -206,7 +207,7 @@ <tbody> [% FOREACH loopro IN looprow %] <tr> - <td>[% loopro.timestamp %]</td> + <td>[% loopro.timestamp | $KohaDates with_hours=1 %]</td> <td> [% IF loopro.librarian %] <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% loopro.librarian.borrowernumber %]" title="display detail for this librarian."> [% IF ( loopro.librarian.firstname ) || ( loopro.librarian.surname ) %][% loopro.librarian.firstname %] [% loopro.librarian.surname %] ([% loopro.librarian.borrowernumber %]) [% ELSE %][% loopro.librarian.borrowernumber %][% END %]</a> -- 2.39.5