[Koha-bugs] [Bug 20123] Allow multiple instances of Koha to have different timezones on the same server

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 5 15:32:36 CEST 2018


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

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #72202|0                           |1
        is obsolete|                            |

--- Comment #37 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 73687
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73687&action=edit
Bug 20123: Allow multiple instances of Koha to have different timezones on the
same server

Most of Koha depends on the local timezone of the server, except for
Koha::Database which support an ENV override with the key TZ.

We should take this a step further. We should not only accept the TZ
environment variable for all of Koha, we should really be able to set the
timezone in the koha conf file as well so we don't have to pass that
environment variable to things like cronjobs and one-off scripts.

Test Plan:
1) Apply this patch
2) Set a timzone in your koha_conf file, that is *not* your local time zone
   Available timzones are listed here:
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
3) Restart apache/plack
4) Perform some actions, check the timestamps in the database and in the
   html output, note they are for the set timezone and not the local
   timezone.

Signed-off-by: Mark Tompsett <mtompset at hotmail.com>
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