From 67c55be518ceae09a8ced74f0152e2d046f27639 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 22 Jul 2019 15:22:41 +0200 Subject: [PATCH] Add serverTimezone to MySQL connection URL --- src/main/java/de/epiceric/shopchest/sql/MySQL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/sql/MySQL.java b/src/main/java/de/epiceric/shopchest/sql/MySQL.java index 93cee7d..2c97b0c 100644 --- a/src/main/java/de/epiceric/shopchest/sql/MySQL.java +++ b/src/main/java/de/epiceric/shopchest/sql/MySQL.java @@ -20,7 +20,7 @@ public class MySQL extends Database { @Override HikariDataSource getDataSource() { HikariConfig config = new HikariConfig(); - config.setJdbcUrl(String.format("jdbc:mysql://%s:%d/%s?autoReconnect=true&useSSL=false", + config.setJdbcUrl(String.format("jdbc:mysql://%s:%d/%s?autoReconnect=true&useSSL=false&serverTimezone=UTC", Config.databaseMySqlHost, Config.databaseMySqlPort, Config.databaseMySqlDatabase)); config.setUsername(Config.databaseMySqlUsername); config.setPassword(Config.databaseMySqlPassword);