Skip to content

Commit

Permalink
fix(jdbc): add timezone in JDBC url as it was using default JVM timez…
Browse files Browse the repository at this point in the history
…one (#4114)
  • Loading branch information
Skraye authored and fhussonnois committed Jun 25, 2024
1 parent 7b109ba commit ded21b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Map<String, Object> propertiesOverrides() {
"kestra.queue.type", "h2",
"kestra.storage.type", "local",
"kestra.storage.local.base-path", data.toString(),
"datasources.h2.url", "jdbc:h2:file:" + data.resolve("database") + ";DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=30000",
"datasources.h2.url", "jdbc:h2:file:" + data.resolve("database") + ";TIME ZONE=UTC;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=30000",
"datasources.h2.username", "sa",
"datasources.h2.password", "",
"datasources.h2.driverClassName", "org.h2.Driver",
Expand Down
2 changes: 1 addition & 1 deletion jdbc-h2/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
datasources:
h2:
url: jdbc:h2:mem:public;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:mem:public;TIME ZONE=UTC;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password: ""
driverClassName: org.h2.Driver
Expand Down
2 changes: 1 addition & 1 deletion webserver/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ kestra:
cls: io.kestra.core.runners.ExecutionQueued
datasources:
h2:
url: jdbc:h2:mem:public;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
url: jdbc:h2:mem:public;TIME ZONE=UTC;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password: ""
driverClassName: org.h2.Driver
Expand Down

0 comments on commit ded21b0

Please sign in to comment.