Re: [INTERFACES] ResultSet.getDate

Поиск
Список
Период
Сортировка
От Tim Joyce
Тема Re: [INTERFACES] ResultSet.getDate
Дата
Msg-id 012901bf2fa3$d25c43e0$0501a8c0@noonoo
обсуждение исходный текст
Ответ на Re: [INTERFACES] ResultSet.getDate  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-interfaces

> "Tim Joyce" <tim@hoop.co.uk> writes:
> > But how do I set the timezone when I start postgres so that dates are
always
> > reported in GMT?
>
> TZ when the postmaster is started sets the default zone, I believe.
> There is no way to make it "always" report in GMT, if by that you
> mean overriding clients' PGTZ settings.

thanks, but what is then the best way of avoiding the following exception:

java.sql.SQLException: Bad Timestamp Format: at 0 in 1999-11-12 17:36:5EST

cheers

timj




В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Ashish Sharma"
Дата:
Сообщение: Japanese, Java and Postgres
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [INTERFACES] Japanese, Java and Postgres