Skip to content

Commit

Permalink
Merge pull request #3398 from ebean-orm/feature/NoTimeZone
Browse files Browse the repository at this point in the history
mysql: Support "NoTimeZone" to bypass MySQL JDBC use of Timezone Calendar
  • Loading branch information
rbygrave committed May 1, 2024
2 parents 753cf66 + 4a8b4dd commit d034821
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,9 @@ private TransactionScopeManager createTransactionScopeManager() {
*/
private DataTimeZone initDataTimeZone() {
String tz = config.getDataTimeZone();
if ("NoTimeZone".equals(tz)) {
return new NoDataTimeZone();
}
if (tz == null) {
if (isMySql(getPlatform())) {
return new MySqlDataTimeZone();
Expand Down

0 comments on commit d034821

Please sign in to comment.