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 00C1A52B92 for ; Tue, 26 Jul 2005 00:19:58 -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 74915-09 for ; Tue, 26 Jul 2005 03:19:55 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id CE6C052BC8 for ; Tue, 26 Jul 2005 00:19:54 -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 1DxFyz-0000Dg-Bp; Tue, 26 Jul 2005 15:19:53 +1200 Message-ID: <42E5ABD8.1080608@opencloud.com> Date: Tue, 26 Jul 2005 15:19:52 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Cramer Cc: "pgsql-jdbc@postgresql.org" Subject: Re: work in progress: timestamp patch References: <42E57D80.4040501@opencloud.com> In-Reply-To: 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.009 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/310 X-Sequence-Number: 13458 Dave Cramer wrote: > I've been messing with it a bit myself, and noticed that > TimeStampUtils.toString used the timezone of the incoming > timestamp, not the calendar. So the call to appendTimeZone, passes in > the timestamp, not the new calendar. Yeah, looking at the stringizing TimestampUtils code is my next step. I've just overhauled the parsing side of things to correctly use passed Calendars (for getTimestamp() and friends) > Also I've added functionality to track the servers's timezone so that > stmt.execute("set timezone='newtimezone'") allows you to > programatically set the server timezone to UTC. Which would be > necessary to get Christian's problem to work even using Oid.INVALID ( I > think ) I don't think it's necessary to track the server timezone at all.. what's the case where this goes wrong? I'll send you an updated version of my patch offlist (it's changing fairly fast at the moment so I'll avoid spamming the list with every revision) -O