mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-12-22 17:11:46 +00:00
Add serverTimezone to MySQL connection URL
This commit is contained in:
parent
27a3d8da9e
commit
67c55be518
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user