Bugzilla – Attachment 73688 Details for
Bug 20123
Allow multiple instances of Koha to have different timezones on the same server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20123: (QA follow-up) If tz is 'local', no need to tell database to set the timezone
Bug-20123-QA-follow-up-If-tz-is-local-no-need-to-t.patch (text/plain), 846 bytes, created by
Tomás Cohen Arazi
on 2018-04-05 13:32:48 UTC
(
hide
)
Description:
Bug 20123: (QA follow-up) If tz is 'local', no need to tell database to set the timezone
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2018-04-05 13:32:48 UTC
Size:
846 bytes
patch
obsolete
>From 460181b26ddc2391e90bf812c2b693d5a2b0d035 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 27 Feb 2018 12:10:59 +0000 >Subject: [PATCH] Bug 20123: (QA follow-up) If tz is 'local', no need to tell > database to set the timezone > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/Database.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Database.pm b/Koha/Database.pm >index 802bdc5111..c92056c170 100644 >--- a/Koha/Database.pm >+++ b/Koha/Database.pm >@@ -71,6 +71,7 @@ sub _new_schema { > > my ( %encoding_attr, $encoding_query, $tz_query, $sql_mode_query ); > my $tz = C4::Context->timezone; >+ $tz = q{} if ( $tz eq 'local' ); > if ( $db_driver eq 'mysql' ) { > %encoding_attr = ( mysql_enable_utf8 => 1 ); > $encoding_query = "set NAMES 'utf8mb4'"; >-- >2.17.0
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 20123
:
71125
|
71839
|
71840
|
72080
|
72081
|
72202
|
72255
|
72603
|
72605
|
73687
| 73688 |
73689
|
73690
|
74043