pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: nikhil raj <nikhilraj474@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Time zone "GST" not recognized.
Date: Fri, 24 Jan 2020 09:19:09 -0800
Message-ID: <aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com> (raw)
In-Reply-To: <CAG1ps1zRJ6CF8xAKOaTu3UhKoO83-m16UD2Fk+C3_smGFbPKnw@mail.gmail.com>
References: <CAG1ps1zRJ6CF8xAKOaTu3UhKoO83-m16UD2Fk+C3_smGFbPKnw@mail.gmail.com>

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.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com>
Permalink:  ../aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com/
Also on:    postgresql.org/message-id/aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, nikhilraj474@gmail.com
  Subject: Re: Time zone "GST" not recognized.
  In-Reply-To: <aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com>
  References: <CAG1ps1zRJ6CF8xAKOaTu3UhKoO83-m16UD2Fk+C3_smGFbPKnw@mail.gmail.com> <aa2348b1-e242-cdde-ec68-6e17a4ebf8ea@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox