From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ross Williams <ross.williams@watchguard.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5912: Etc/GMT time utc offset error
Date: Thu, 03 Mar 2011 12:24:21 -0500
Message-ID: <10585.1299173061@sss.pgh.pa.us> (raw)
In-Reply-To: <201103031613.p23GDYfj080559@wwwmaster.postgresql.org>
References: <201103031613.p23GDYfj080559@wwwmaster.postgresql.org>
"Ross Williams" <ross.williams@watchguard.com> writes:
> On the target OS the offsets are correct GMT+ gives a increased utc_offset.
> When I attempt to set via postgres, the timezone are flipped + for - and
> vice versa.
The problem is that there are conflicting standards for the sign of UTC
offsets. The conventions Postgres has chosen are not 100% consistent,
but neither is the real world. There's some discussion in this
section of the manual:
http://www.postgresql.org/docs/8.4/static/datatype-datetime.html#DATATYPE-TIMEZONES
in particular this bit:
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
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, ross.williams@watchguard.com
Subject: Re: BUG #5912: Etc/GMT time utc offset error
In-Reply-To: <10585.1299173061@sss.pgh.pa.us>
References: <201103031613.p23GDYfj080559@wwwmaster.postgresql.org> <10585.1299173061@sss.pgh.pa.us>
* 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