Startup parameters timezone conversion

From: Leonid Vygovskiy <Leonid(dot)Vygovskiy(at)gmail(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Startup parameters timezone conversion
Date: 2022-01-19 12:11:34
Message-ID: CA+g6ijixekZxJergSrkai=U++aj3FzzYyh3B6fFFMo3Yk6nSGw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi all!

I study how to work with the timezone in JDBC driver and found the code
which I don't understand.
This is implementation of the method
ConnectionFactoryImpl.createPostgresTimeZone() which has the comment:"
Convert Java time zone to postgres time zone. All others stay the same
except that GMT+n changes to GMT-nn and vise versa."

I'm confused with that changing. Can anybody talk about the reasons and
motives of this behavior?

BR, Leonid Vygovskiy

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2022-01-19 14:01:05 Re: Startup parameters timezone conversion
Previous Message Dave Cramer 2022-01-18 20:05:35 [pgjdbc/pgjdbc] f81244: fix: we will ask the server if it supports GSS Enc...