Re: Bug in TimestampUtils.java?

From: imad <immaad(at)gmail(dot)com>
To: "Richard Cook" <awhig(at)yahoo(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug in TimestampUtils.java?
Date: 2006-11-09 21:54:15
Message-ID: 1f30b80c0611091354x4a9b4cebk3bd0643e5d5b8a18@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 11/10/06, Richard Cook <awhig(at)yahoo(dot)com> wrote:
>
> Hi All,
>
> I recently ran into a problem that was partially caused by some behaviour I
> found in TimestampUtils.java. To me it does not seem right...
>
> I retrieved a Timestamp Column from Postgres as a Date. The data in the
> database had a timezone of GMT -0500, the current time was also in GMT
> -0500. If you look at the date that is returned from resultSet.getDate() on
> a Timestamp column, the timezone for the Date object is -0400. I would think
> that it should be -0500.

I suggest you to confirm it with your database server. Try developing the same
scenario without JDBC and see what you get because connectors are not
supposed to play with the data they get. It is the server who formats everything
before sending it to the client.

--Imad
www.EnterpriseDB.com

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Cook 2006-11-09 22:37:52 Re: Bug in TimestampUtils.java?
Previous Message Richard Cook 2006-11-09 20:16:29 Bug in TimestampUtils.java?