Re: BUG #5552: incorrect returned value of time - Mailing list pgsql-bugs

From Milen A. Radev
Subject Re: BUG #5552: incorrect returned value of time
Date
Msg-id i1f8f2$dor$1@dough.gmane.org
Whole thread Raw
In response to BUG #5552: incorrect returned value of time  ("Konstantin Kulikov" <k.e.kulikov@gmail.com>)
List pgsql-bugs
На 12.07.2010 г. 10:16, Konstantin Kulikov написа:
>
> The following bug has been logged online:
>
> Bug reference:      5552
> Logged by:          Konstantin Kulikov
> Email address:      k.e.kulikov@gmail.com
> PostgreSQL version: 8.3
> Operating system:   unix
> Description:        incorrect returned value of time
> Details:
>
> select current_timestamp at time zone 'GMT+3';
>
> will return actually 'GMT-3'

Excerpts from the docs ("8.5.3. Time Zones",
http://www.postgresql.org/docs/8.3/static/datatype-datetime.html#DATATYPE-TIMEZONES):

" - In addition to the timezone names and abbreviations, PostgreSQL will
accept POSIX-style time zone specifications of the form STDoffset or
STDoffsetDST, where STD is a zone abbreviation, offset is a numeric
offset in hours west from UTC, and DST is an optional daylight-savings
zone abbreviation, assumed to stand for one hour ahead of the given
offset..."

and:

"Another issue to keep in mind is that in POSIX time zone names,
positive offsets are used for locations west of Greenwich. Everywhere
else, PostgreSQL follows the ISO-8601 convention that positive timezone
offsets are east of Greenwich. ..."


--
Milen A. Radev

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5553: Repeating the keyword DECLARE in the CREATE FUNCTION statement
Next
From: Tom Lane
Date:
Subject: Re: BUG #5552: incorrect returned value of time