Bugzilla – Attachment 72214 Details for
Bug 18674
Show timezone for Perl and MySQL on the About Koha page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18674: Added timezone information to about page
Bug-18674-Added-timezone-information-to-about-page.patch (text/plain), 1.88 KB, created by
Mark Tompsett
on 2018-02-26 15:05:17 UTC
(
hide
)
Description:
Bug 18674: Added timezone information to about page
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-02-26 15:05:17 UTC
Size:
1.88 KB
patch
obsolete
>From 42692add53e2639544de763424b0a128df8288f7 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 26 Feb 2018 15:00:54 +0000 >Subject: [PATCH] Bug 18674: Added timezone information to about page > >Before patch: No timezone section >After patch: timezone section at bottom of > Server information tab. > >Actual is what is being used. Config overrides environment variables. >So if there is confusion why the environment variables aren't working, >it will be visible why. >--- > about.pl | 7 +++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 4 ++++ > 2 files changed, 11 insertions(+) > >diff --git a/about.pl b/about.pl >index 25fd54d..83f7372 100755 >--- a/about.pl >+++ b/about.pl >@@ -61,6 +61,13 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > } > ); > >+my $time_zone = { >+ actual => C4::Context->timezone(), >+ config => C4::Context->config('timezone'), >+ environment => $ENV{TZ}, >+}; >+$template->param( 'time_zone' => $time_zone ); >+ > my $perl_path = $^X; > if ($^O ne 'VMS') { > $perl_path .= $Config{_exe} unless $perl_path =~ m/$Config{_exe}$/i; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index 2d2992f..72858ea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -111,6 +111,10 @@ > [% ELSIF (errZebraConnection) %] > <tr><th scope="row"><b>Warning</b> </th><td>Error message from Zebra: [% ( errZebraConnection ) %] </td></tr> > [% END %] >+ <tr><th scope="row">Time zone: </th> >+ <td>Used: [% time_zone.actual %]<br/> >+ Config: [% time_zone.config %]<br/> >+ ENV: [% time_zone.environment %]</td></tr> > </table> > </div> > <div id="perl"> >-- >2.1.4
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 18674
:
72214
|
73533
|
73534
|
73700
|
73701
|
73702
|
73720
|
74024
|
74026
|
74036