Re: Time conversion across various parts of world

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Time conversion across various parts of world
Дата
Msg-id 10152.1101493046@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Time conversion across various parts of world  (John R Pierce <pierce@hogranch.com>)
Список pgsql-jdbc
John R Pierce <pierce@hogranch.com> writes:
> deepthi@granwill.com wrote:
>> How can i convert this time or get the corresponding
>> time at US using pgsql time zone feature or if anything else.

> store GMT in the database always, convert back to local time when you
> display it.

Note that the TIMESTAMP WITH TIME ZONE datatype effectively does that
for you.  The only thing you need to do is SET TIMEZONE to the
appropriate timezone for data entry or display.  The server's timezone
is really entirely irrelevant, except that it sets the initial default
value for the TIMEZONE setting.

            regards, tom lane

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Time conversion across various parts of world
Следующее
От: Manuel Sugawara
Дата:
Сообщение: Re: Result set not positioned properly, perhaps you need to