| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com> |
| Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Doubt on pg_timezone_names and pg_timezone_abbrevs |
| Date: | 2025-04-01 04:06:34 |
| Message-ID: | 278822.1743480394@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jayadevan M | 2025-04-01 06:32:43 | Re: Doubt on pg_timezone_names and pg_timezone_abbrevs |
| Previous Message | David G. Johnston | 2025-04-01 03:58:11 | Re: Doubt on pg_timezone_names and pg_timezone_abbrevs |