logo       

Re: Timestamp: msg#00220

db.postgresql.jdbc

Subject: Re: Timestamp

"Alex Falkowski" <alex@xxxxxxxxxxx> 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



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise