Re: Startup parameters timezone conversion

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Startup parameters timezone conversion
Дата
Msg-id CADK3HHKBw527C_C0wcRVhVE7OB6Xi1H3-XWgTCFXD3sqa9Rhnw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Startup parameters timezone conversion  (Thomas Kellerer <shammat@gmx.net>)
Список pgsql-jdbc

On Wed, 19 Jan 2022 at 09:42, Thomas Kellerer <shammat@gmx.net> wrote:
Could this be related to Posix time zones?

https://www.postgresql.org/docs/current/datetime-posix-timezone-specs.html

> the positive sign is used for zones west of Greenwich. (Note that this is the opposite of the ISO-8601 sign convention used elsewhere in PostgreSQL

Thomas

Yes this is the case

test=# set timezone to 'GMT-5';
SET
test=# select now();
              now
-------------------------------
 2022-01-19 20:05:25.515391+05
(1 row)

test=# set timezone to 'GMT+5';
SET
test=# select now();
              now
-------------------------------
 2022-01-19 10:05:52.054867-05
(1 row)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Startup parameters timezone conversion
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Startup parameters timezone conversion