Re: [GENERAL] Are we backwards on the sign of timezones?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Are we backwards on the sign of timezones?
Дата
Msg-id 2172.1057375331@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Are we backwards on the sign of timezones?  ("Dan Langille" <dan@langille.org>)
Ответы Re: [GENERAL] Are we backwards on the sign of timezones?  ("Dan Langille" <dan@langille.org>)
Список pgsql-hackers
"Dan Langille" <dan@langille.org> writes:
> Now that my NZ server is up and running:
> template1=# select now();
>  2003-07-05 12:47:15.444535+12

> That doesn't look backwards to me.

Try EXTRACT(timezone_hour from now());

The timestamp I/O routines are using what I think is the correct sign.
EXTRACT() is at variance.  So is SET TIMEZONE with a numeric offset.

            regards, tom lane

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: [PATCHES] Proof-of-concept for initdb-time shared_buffers selection
Следующее
От: "Dan Langille"
Дата:
Сообщение: Re: [GENERAL] Are we backwards on the sign of timezones?