X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 922EA52BDE for ; Mon, 25 Jul 2005 20:18:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22817-02 for ; Mon, 25 Jul 2005 23:18:31 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id BAD0852AC4 for ; Mon, 25 Jul 2005 20:18:30 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DxCDR-00070V-GN; Tue, 26 Jul 2005 11:18:33 +1200 Message-ID: <42E57348.50705@opencloud.com> Date: Tue, 26 Jul 2005 11:18:32 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Cryder Cc: List Subject: Re: Timestamp Summary References: <90876a9e050725094560a4aa6a@mail.gmail.com> In-Reply-To: <90876a9e050725094560a4aa6a@mail.gmail.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/299 X-Sequence-Number: 13447 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