Message-ID: From: "vlsi (@vlsi)" To: "pgjdbc/pgjdbc" Date: Tue, 03 Jun 2025 16:26:47 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #2311: Why is client time zone not configurable? In-Reply-To: References: List-Id: X-GitHub-Author-Login: vlsi X-GitHub-Comment-Id: 2936216853 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 2311 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/2311#issuecomment-2936216853 Content-Type: text/plain; charset=utf-8 @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.