Re: Doubt on pg_timezone_names and pg_timezone_abbrevs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Doubt on pg_timezone_names and pg_timezone_abbrevs
Дата
Msg-id 278822.1743480394@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Doubt on pg_timezone_names and pg_timezone_abbrevs  (Jayadevan M <maymala.jayadevan@gmail.com>)
Список pgsql-general
Jayadevan M <maymala.jayadevan@gmail.com> writes:
> I used 'IST'  in a query like this - * (timestamp_hour) at time zone 'IST'
> time_ist *and did not get the expected output - timestamp in Indian
> Standard Time.

I think IST defaults to 'Israel Standard Time', a/k/a Asia/Jerusalem,
a/k/a UTC+2.  To get it to mean Indian Standard Time a/k/a Asia/Calcutta
you need

set timezone_abbreviations TO 'India';

(or more likely, adjust that in your installation's postgresql.conf).

See https://www.postgresql.org/docs/current/datetime-config-files.html

            regards, tom lane



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