From 460181b26ddc2391e90bf812c2b693d5a2b0d035 Mon Sep 17 00:00:00 2001 From: Kyle M Hall 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 --- 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