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 9516152E88 for ; Tue, 26 Jul 2005 07:23:23 -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 68165-03 for ; Tue, 26 Jul 2005 10:23:19 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id CCA6752DE8 for ; Tue, 26 Jul 2005 07:23:17 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DxMam-0002uy-Ac; Tue, 26 Jul 2005 22:23:20 +1200 Message-ID: <42E60F18.4010807@opencloud.com> Date: Tue, 26 Jul 2005 10:23:20 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) 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> <42E5C8D0.1080102@opencloud.com> <6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com> In-Reply-To: <6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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/319 X-Sequence-Number: 13467 Dave Cramer wrote: > > On 26-Jul-05, at 1:23 AM, Oliver Jowett wrote: > >> I looked at this and the current code is certainly wrong. The timezone >> offset of a Timestamp (deprecated method!) returns the offset of the >> JVM's default timezone always. We should indeed be passing the target >> calendar and using that. >> >> I've added that change to my patch. Interestingly none of the regression >> tests fail with it changed; we're very short on tests that actually test >> the with-Calendar code.. > > Well, I actually think this little change is more of the problem than > anything else. I don't understand what you mean -- are you saying we shouldn't change this? > Did you manage to cobble together a patch for me to test ? I'll send you a current snapshot in an hour or so. I got sidetracked into trying to work out the semantics of getDate() and getTime() on a timestamptz, still haven't found an entirely satisfactory solution.. -O