Re: Time zone "GST" not recognized.

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: nikhil raj <nikhilraj474(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Time zone "GST" not recognized.
Date: 2020-01-24 17:19:09
Message-ID: aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/24/20 8:59 AM, nikhil raj wrote:
> Hi ALL,
>
> Required help with the time zone. i am getting error on the GST time
> line. is tht a bug or postgres doesn't support the GST time zone.
>
>
> select CURRENT_TIMESTAMP AT TIME ZONE 'GST'
> ERROR: time zone "GST" not recognized SQL state: 22023

Try GMT:

test_(postgres)# select CURRENT_TIMESTAMP AT TIME ZONE 'GMT';
timezone
----------------------------
2020-01-24 17:17:52.754861

For list of recognized abbreviations:

https://www.postgresql.org/docs/11/view-pg-timezone-abbrevs.html

>
>
> Postgres -:11.2
> Ubuntu:-18.04
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-01-24 17:39:51 Re: Time zone "GST" not recognized.
Previous Message Tom Lane 2020-01-24 17:18:46 Re: Time zone "GST" not recognized.