Re: ResultSet.getTimestamp(Calendar) off by one-hour - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: ResultSet.getTimestamp(Calendar) off by one-hour
Date
Msg-id 4747.1236975395@sss.pgh.pa.us
Whole thread Raw
In response to Re: ResultSet.getTimestamp(Calendar) off by one-hour  (Roland Roberts <roland@astrofoto.org>)
Responses Re: ResultSet.getTimestamp(Calendar) off by one-hour  (Roland Roberts <roland@astrofoto.org>)
List pgsql-jdbc
Roland Roberts <roland@astrofoto.org> writes:
> And here is what is in the database:

>     roland=# select * from mytable;
>      id |       mytime
>     ----+---------------------
>      12 | 2009-03-13 15:00:00
>     (1 row)

Apparently you're using a timestamp WITHOUT time zone column to store
the data.  Not recommended if you are worried about timezone effects,
since by definition the apparent value depends on caller's timezone
context.  Use timestamp WITH time zone and see if it gets better.

            regards, tom lane

pgsql-jdbc by date:

Previous
From: Roland Roberts
Date:
Subject: Re: ResultSet.getTimestamp(Calendar) off by one-hour
Next
From: Roland Roberts
Date:
Subject: Re: ResultSet.getTimestamp(Calendar) off by one-hour