From 8fb700b81dac0e180d1acf24c50420b4f6939fd5 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 Signed-off-by: Jonathan Druart --- 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.39.5