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 CFB6452BDC for ; Tue, 26 Jul 2005 07:20:29 -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 65805-06 for ; Tue, 26 Jul 2005 10:20:25 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 3441752E44 for ; Tue, 26 Jul 2005 07:20:20 -0300 (ADT) Received: (qmail 14516 invoked from network); 26 Jul 2005 10:20:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 26 Jul 2005 10:20:19 -0000 In-Reply-To: <42E5C8D0.1080102@opencloud.com> References: <42E57D80.4040501@opencloud.com> <42E5C8D0.1080102@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com> Cc: "pgsql-jdbc@postgresql.org" Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: work in progress: timestamp patch Date: Tue, 26 Jul 2005 06:20:17 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/318 X-Sequence-Number: 13466 On 26-Jul-05, at 1:23 AM, Oliver Jowett wrote: > 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. >> > > 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. The reason it doesn't fail is because the timezone of the server and the client are the same. Did you manage to cobble together a patch for me to test ? > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > >