Bugzilla – Attachment 72255 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 Followup]: If tz is 'local', no need to tell database to set the timezone
Bug-20123-QA-Followup-If-tz-is-local-no-need-to-te.patch (text/plain), 784 bytes, created by
Kyle M Hall (khall)
on 2018-02-27 12:12:00 UTC
(
hide
)
Description:
Bug 20123 [QA Followup]: If tz is 'local', no need to tell database to set the timezone
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-02-27 12:12:00 UTC
Size:
784 bytes
patch
obsolete
>From 89d3b616fcb17287dbacbca02914050976078d6e 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 Followup]: If tz is 'local', no need to tell > database to set the timezone > >--- > Koha/Database.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/Koha/Database.pm b/Koha/Database.pm >index 802bdc5..c92056c 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.10.2
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