Skip to content

Commit

Permalink
Remove serverTimezone=UTC (#29067)
Browse files Browse the repository at this point in the history
  • Loading branch information
azexcy authored Nov 17, 2023
1 parent 77b8bdd commit 5a4f36f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private Properties buildDefaultQueryProperties() {
result.setProperty("netTimeoutForStreamingResults", "0");
result.setProperty("tinyInt1isBit", Boolean.FALSE.toString());
result.setProperty("useSSL", Boolean.FALSE.toString());
result.setProperty("serverTimezone", "UTC");
result.setProperty("zeroDateTimeBehavior", "round");
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static String getURL(final DatabaseType databaseType, final String host,
case "MySQL":
return String.format(
"jdbc:mysql://%s:%s/%s?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false"
+ "&useServerPrepStmts=true&serverTimezone=UTC&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true",
+ "&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true",
host, port, dataSourceName);
case "PostgreSQL":
return String.format("jdbc:postgresql://%s:%s/%s?ssl=on&sslmode=prefer", host, port, dataSourceName);
Expand Down

0 comments on commit 5a4f36f

Please sign in to comment.