Re: question about timestamp with tz

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: question about timestamp with tz
Дата
Msg-id dcc563d10910221626v1a8c385fw1caeef0934474103@mail.gmail.com
обсуждение исходный текст
Ответ на question about timestamp with tz  (the6campbells <the6campbells@gmail.com>)
Список pgsql-sql
On Thu, Oct 22, 2009 at 2:41 PM, the6campbells <the6campbells@gmail.com> wrote:
> Question.. is there a way that I can get Postgres to return the tz as
> supplied on the insert statement

PostgreSQL converts the timezone to GMT and stores it with no offset,
then adds an offset based on the TZ of the client requesting it back
later.

If you want to store the offset you'll have to do it yourself.  Note
that offset does not necessarily = timezone...


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: date + interval year - why is the return type convered to a timestamp?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: @@Error equivalent in Postgresql