Re: ResultSet.getTimestamp(Calendar) off by one-hour

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ResultSet.getTimestamp(Calendar) off by one-hour
Дата
Msg-id 4747.1236975395@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ResultSet.getTimestamp(Calendar) off by one-hour  (Roland Roberts <roland@astrofoto.org>)
Ответы Re: ResultSet.getTimestamp(Calendar) off by one-hour  (Roland Roberts <roland@astrofoto.org>)
Список 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 по дате отправления:

Предыдущее
От: Roland Roberts
Дата:
Сообщение: Re: ResultSet.getTimestamp(Calendar) off by one-hour
Следующее
От: Roland Roberts
Дата:
Сообщение: Re: ResultSet.getTimestamp(Calendar) off by one-hour