mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Set serverTimezone property on MySQL driver
This commit is contained in:
parent
9f8b4b2404
commit
62270bfd93
@ -71,6 +71,11 @@ public class MySqlConnectionFactory extends HikariConnectionFactory {
|
||||
properties.putIfAbsent("alwaysSendSetIsolation", "false");
|
||||
properties.putIfAbsent("cacheCallableStmts", "true");
|
||||
|
||||
// https://stackoverflow.com/a/54256150
|
||||
// It's not super important which timezone we pick, because we don't use time-based
|
||||
// data types in any of our schemas/queries.
|
||||
properties.putIfAbsent("serverTimezone", "UTC");
|
||||
|
||||
super.overrideProperties(properties);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user