making sure hibernate uses UTC time zone (#6168)

This commit is contained in:
nikinagy 2020-04-22 13:34:17 +01:00 committed by GitHub
parent f4c1119727
commit 02d21c7bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,7 @@ class HibernateConfiguration(
.setProperty("hibernate.hbm2ddl.auto", hbm2dll)
.setProperty("javax.persistence.validation.mode", "none")
.setProperty("hibernate.connection.isolation", databaseConfig.transactionIsolationLevel.jdbcValue.toString())
.setProperty("hibernate.jdbc.time_zone", "UTC")
schemas.forEach { schema ->
// TODO: require mechanism to set schemaOptions (databaseSchema, tablePrefix) which are not global to session