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 4BB0353402 for ; Thu, 21 Apr 2005 15:27:51 -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 59130-07 for ; Thu, 21 Apr 2005 18:27:50 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id D122E533DC for ; Thu, 21 Apr 2005 15:27:49 -0300 (ADT) Received: (qmail 9372 invoked by uid 1112); 21 Apr 2005 18:27:50 -0000 Date: Thu, 21 Apr 2005 13:27:50 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Boris Kirzner Cc: pgsql-jdbc@postgresql.org Subject: Re: Bug in storing Timestamp In-Reply-To: <42679EE7.4000002@mainsoft.com> Message-ID: References: <425A701C.6070608@mainsoft.com> <42679EE7.4000002@mainsoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/111 X-Sequence-Number: 12718 On Thu, 21 Apr 2005, Boris Kirzner wrote: > > Kris Jurka wrote: > > >I am not able to reproduce this problem. The attached test case shows a > >problem with storing java.sql.Time into a timetz type because the correct > >offset is not saved, but that's not what you've described. Perhaps it is > >something specific to your timezone? > > > After more investigation I found that the bug I'm talking about can be > reproduced on timestamp column also. > > The configuration is as follows : > PostgeSQL runs on WindowsXP that has "Automatically adjust clock for dst > savings" OFF, timezone is (GMT+02:00) Jerusalem > Client runs on WindowsXP that has "Automatically adjust clock for dst > savings" OFF , timezone is (GMT+02:00) Jerusalem > > The test stores 2004-08-09 20:30:15.50 timestamp into a table and > immediately fetches it. > Actual result : the value fetched is 2004-08-09 21:30:15.5 > Expected result : the value fetched is 2004-08-09 20:30:15.5 This is a known bug in the 8.0 driver and seems different than your original complaint. Being off by an hour (the difference between the two timezones) is the expected (and incorrect) behavior that I expected to see. Your original complaint was off by 20:40 which is an unusual number, are you still seeing that? Kris Jurka