Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 5E27F9FB4C2 for ; Tue, 14 Nov 2006 19:05:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 37832-10 for ; Tue, 14 Nov 2006 19:05:45 -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 4BF389FA12B for ; Tue, 14 Nov 2006 19:05:44 -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 1Gk7LT-0005hu-AZ; Wed, 15 Nov 2006 12:05:35 +1300 Message-ID: <455A4BD1.6020302@opencloud.com> Date: Tue, 14 Nov 2006 23:05:53 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Do, Leon \(Leon\)" CC: Dave Cramer , imad , pgsql-jdbc@postgresql.org Subject: Re: help with front/backend datatype converting References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/70 X-Sequence-Number: 16112 Do, Leon (Leon) wrote: > I think postgres has a few bugs in this area. When timezone doesn’t > have a semicolon between hour and min, TimestampUtil.java cann’t handle > it. The firstNonDigits method call below returns all four digits and > assigns them to timezone hour variable. Does the server ever generate timezones like this? > And for the second bugs, fractional part of the second (e.g. > 14:36:19.213000) seem to be interpreted incorrectly when converting to > Java Date. 213000 would round up as additional 3.52 mins. Testcase please? -O