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] issue #2311: Why is client time zone not configurable?
Date: Tue, 03 Jun 2025 16:26:47 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
@eirikbakke , previously, the driver connected with `client` timezone.
If we change the default the `TimeZone=GMT`, it might break applications that might have code like the following:
```
executeQuery("select now()::text")... getString(1)
```
The results would change if the driver silently alters the timezone.
---
Do you have any other suggestion other than "move the driver to TimeZone=GMT by default"?
---
I expect it might be workable if we support `TimeZone` connection parameter so the driver uses the value provided by the user. Then, if user configures `TimeZone=GMT`, it would be user to ensure the queries use `now()::text` properly.
view thread (57+ messages) latest in thread
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] issue #2311: Why is client time zone not configurable?
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