Skip to content

Commit

Permalink
[CONJ-1201] incorrect default behavior for forceConnectionTimeZoneToS…
Browse files Browse the repository at this point in the history
…ession
  • Loading branch information
rusher committed Oct 15, 2024
1 parent 418a157 commit 9cd567c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,7 @@ public String createSessionVariableQuery(Context context) {
}

// force client timezone to connection to ensure result of now(), ...
if (conf.forceConnectionTimeZoneToSession() == null
|| conf.forceConnectionTimeZoneToSession()) {
if (Boolean.TRUE.equals(conf.forceConnectionTimeZoneToSession())) {
TimeZone connectionTz = context.getConnectionTimeZone();
ZoneId connectionZoneId = connectionTz.toZoneId();

Expand Down

0 comments on commit 9cd567c

Please sign in to comment.