mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 10:22:29 +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
|
@Override
|
||||||
HikariDataSource getDataSource() {
|
HikariDataSource getDataSource() {
|
||||||
HikariConfig config = new HikariConfig();
|
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.databaseMySqlHost, Config.databaseMySqlPort, Config.databaseMySqlDatabase));
|
||||||
config.setUsername(Config.databaseMySqlUsername);
|
config.setUsername(Config.databaseMySqlUsername);
|
||||||
config.setPassword(Config.databaseMySqlPassword);
|
config.setPassword(Config.databaseMySqlPassword);
|
||||||
|
Loading…
Reference in New Issue
Block a user