Re: time zone problem - Mailing list pgsql-general

From Tom Lane
Subject Re: time zone problem
Date
Msg-id [email protected]
Whole thread Raw
In response to time zone problem  (Cefull Lo <[email protected]>)
Responses Re: time zone problem
List pgsql-general
Cefull Lo <[email protected]> writes:
> I'm located in Hong Kong, UTC+8 time zone. When I
> select current_timestamp;
>  2012-01-13 23:56:16.825558+08

> However, when I
> select current_timestamp at time zone 'UTC+8';
> I expect the result is the same as the above one.

Sorry, but it isn't.  A time zone name spelled that way is a POSIX time
zone specification, and in POSIX positive offsets are west of Greenwich,
not east.  See
http://www.postgresql.org/docs/9.1/static/datatype-datetime.html#DATATYPE-TIMEZONES

            regards, tom lane

pgsql-general by date:

Previous
From: eshishki
Date:
Subject: Re: Corrupted index, what do i do?ruc
Next
From: Matt Dew
Date:
Subject: Re: indexes no longer used after shutdown during reindexing