From: Oliver Jowett <oliver@opencloud.com>
To: Christian Cryder <c.s.cryder@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Timestamp Summary
Date: Tue, 26 Jul 2005 11:18:32 +1200
Message-ID: <42E57348.50705@opencloud.com> (raw)
In-Reply-To: <90876a9e050725094560a4aa6a@mail.gmail.com>
References: <90876a9e050725094560a4aa6a@mail.gmail.com>
Christian Cryder wrote:
> I just wanted to take a few moments and summarize where we are in our
> Timestamp woes issue. I'm also going to post a piece of code that
> illustrates some of the problems we've experienced, and then try and
> explain the conclusions we've arrived at. Hopefully this well help
> others in the future.
Why is another thread on this necessary?
Did you try the patch I sent you off-list?
> if (tz.useDaylightTime()) {
> stmt.execute("set timezone='"+tz.getID().toLowerCase()+"'");
> } else {
> stmt.execute("set timezone='etc/gmt"+(roff<=0 ? "+" :
> "")+(roff/-3600000)+"'");
> }
I have real problems with fiddling with the server timezone as discussed
in the other thread, and I'd rather not see this patch applied. It makes
a heck of a lot of assumptions about how Java/server timezones match up,
and we have other options (namely using Unknown parameter types) that
seem better.
-O
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, c.s.cryder@gmail.com
Subject: Re: Timestamp Summary
In-Reply-To: <42E57348.50705@opencloud.com>
References: <90876a9e050725094560a4aa6a@mail.gmail.com> <42E57348.50705@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox