add timezone to mysql init

This commit is contained in:
2020-03-13 15:41:55 +01:00
parent 5605a813d9
commit 05b338ec85
3 changed files with 6 additions and 133 deletions

View File

@ -21,7 +21,7 @@ class MySQLConnector extends Database {
public Connection getConnection() throws SQLException {
DriverManager.setLoginTimeout(1);
return DriverManager.getConnection(
"jdbc:mysql://" + host + ":" + port + "/" + dbName + "?useSSL=false",
"jdbc:mysql://" + host + ":" + port + "/" + dbName + "?useSSL=false&serverTimezone=CET",
user,
password);
}