Re: BUG #5552: incorrect returned value of time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Konstantin Kulikov" <k(dot)e(dot)kulikov(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5552: incorrect returned value of time
Date: 2010-07-12 14:27:09
Message-ID: 14742.1278944829@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Konstantin Kulikov" <k(dot)e(dot)kulikov(at)gmail(dot)com> writes:
> Description: incorrect returned value of time

> select current_timestamp at time zone 'GMT+3';

> will return actually 'GMT-3'

This is unfortunate, but it's not a bug. There are two different
standards about the sign of timezone offsets, and Postgres has to
deal with both of them. See
http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-TIMEZONES
particularly the note that

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.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Glaesemann 2010-07-12 16:11:38 BUG #5555: ALTER TABLE ONLY ... SET NOT NULL on parent prevent prior inherited tables from being restored
Previous Message Milen A. Radev 2010-07-12 14:22:25 Re: BUG #5552: incorrect returned value of time