Re: Timestamp - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: Timestamp
Date
Msg-id 3530.1024968089@sss.pgh.pa.us
Whole thread Raw
In response to Timestamp  ("Alex Falkowski" <alex@l-o-u-d.com>)
List pgsql-jdbc
"Alex Falkowski" <alex@l-o-u-d.com> writes:
> I get the following output, which clearly marks to me that setTimestamp is =
> doing something wrong

> PostgreSQL 7.2 JDBC2
> 2002-06-22 00:00:00.0
> SELECT o.id FROM question o WHERE (o.question_date =3D '2002-06-21 14:00:00=
> .00+00')

It's not apparent to me that this is wrong --- is the second println
reporting the Timestamp's value in your local timezone?  I guess that
your local timezone is GMT+10 from your Date: header, in which case
the two values are perfectly consistent.

            regards, tom lane



pgsql-jdbc by date:

Previous
From: Timothy Reaves
Date:
Subject: Re: Posgresql - openoffice-JDBC
Next
From: John Hicks
Date:
Subject: Re: servlets and JDBC (postgresql 7.2)