Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A81369FB313 for ; Fri, 10 Nov 2006 02:54:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 85663-02-8 for ; Fri, 10 Nov 2006 02:54:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 469799FB565 for ; Fri, 10 Nov 2006 02:20:22 -0400 (AST) Received: from 219-89-241-92.adsl.xtra.co.nz ([219.89.241.92] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GiPkN-00038I-5W; Fri, 10 Nov 2006 19:20:15 +1300 Message-ID: <45541A15.3010008@opencloud.com> Date: Fri, 10 Nov 2006 06:20:05 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard Cook CC: imad , pgsql-jdbc@postgresql.org Subject: Re: Bug in TimestampUtils.java? References: <20061109223752.62560.qmail@web60221.mail.yahoo.com> In-Reply-To: <20061109223752.62560.qmail@web60221.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/45 X-Sequence-Number: 16087 Richard Cook wrote: > If you look at the source code for the postgres jdbc driver, it > retrieves the column as a string, then uses the TimeStampUtils class to > create a date or timestamp out of it. I think the driver is incorrectly > setting the timezone when it creates the Date object. I missed the original post here, but if you retrieve the result as a String what do you get? (the exact value please) .. and how does that compare to the Date you get? -O