[Koha-bugs] [Bug 18674] Show timezone for Perl and MySQL on the About Koha page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 5 21:38:29 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18674

--- Comment #8 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 73720
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73720&action=edit
Bug 18674: TZ error handling

This patch adds C4::Context->timezone bad timezone handling.
The calculated 'effective' timezone is tested with the right tool and a
fallback to 'local' is added. A warning is printed in the logs.

A test for this is added to about.pl too, along with the right warning
messages in case of problems.

Tests are added for both invalid TZ and to make sure the warning is
raised.

To test:
- Apply the patch
- Run:
  $ kshell
 k$ prove t/timezones.t
=> SUCCESS: All tests pass

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list