pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] PR #3944: doc: clarify that OffsetDateTime return UTC time zone as the backend does not store time zone
Date: Mon, 23 Feb 2026 12:09:00 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Well, `java.sql` types do not have explicit timezone, so we have to convert the value as if it was in "the client's default timezone".
With OffsetDateTime we somehow decided to force UTC, and it causes inconsistency like in #1324.
I think we can use connection timezone when decoding OffsetDateTime, and we can convert UTC binary value into the client's time zone. However, if we ever do so, we should better discuss it in #1324.
This PR just adds extra clarification on the current behavior.
view thread (5+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: github://pgjdbc/pgjdbc
Cc: [email protected], [email protected]
Subject: Re: [pgjdbc/pgjdbc] PR #3944: doc: clarify that OffsetDateTime return UTC time zone as the backend does not store time zone
In-Reply-To: <<[email protected]>>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox