Re: BUG #5552: incorrect returned value of time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5552: incorrect returned value of time
Дата
Msg-id 14742.1278944829@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5552: incorrect returned value of time  ("Konstantin Kulikov" <k.e.kulikov@gmail.com>)
Список pgsql-bugs
"Konstantin Kulikov" <k.e.kulikov@gmail.com> writes:
> Description:        incorrect returned value of time

> select current_timestamp at time zone 'GMT+3';

> will return actually 'GMT-3'

This is unfortunate, but it's not a bug.  There are two different
standards about the sign of timezone offsets, and Postgres has to
deal with both of them.  See
http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-TIMEZONES
particularly the note that

    Another issue to keep in mind is that in POSIX time zone names,
    positive offsets are used for locations west of
    Greenwich. Everywhere else, PostgreSQL follows the ISO-8601
    convention that positive timezone offsets are east of Greenwich.

            regards, tom lane

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

Предыдущее
От: "Milen A. Radev"
Дата:
Сообщение: Re: BUG #5552: incorrect returned value of time
Следующее
От: "Michael Glaesemann"
Дата:
Сообщение: BUG #5555: ALTER TABLE ONLY ... SET NOT NULL on parent prevent prior inherited tables from being restored