From: Kris Jurka <books@ejurka.com>
To: Boris Kirzner <borisk@mainsoft.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in storing Timestamp
Date: Thu, 21 Apr 2005 13:27:50 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0504211324350.5816@leary.csoft.net> (raw)
In-Reply-To: <42679EE7.4000002@mainsoft.com>
References: <425A701C.6070608@mainsoft.com>
<Pine.BSO.4.56.0504140407320.17685@leary.csoft.net>
<42679EE7.4000002@mainsoft.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, borisk@mainsoft.com
Subject: Re: Bug in storing Timestamp
In-Reply-To: <Pine.BSO.4.56.0504211324350.5816@leary.csoft.net>
References: <425A701C.6070608@mainsoft.com> <Pine.BSO.4.56.0504140407320.17685@leary.csoft.net> <42679EE7.4000002@mainsoft.com> <Pine.BSO.4.56.0504211324350.5816@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox