Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A0CD11337BE1 for ; Thu, 3 Mar 2011 13:24:39 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 00286-03-4 for ; Thu, 3 Mar 2011 17:24:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id EA5451337BF2 for ; Thu, 3 Mar 2011 13:24:22 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p23HOMVH010586; Thu, 3 Mar 2011 12:24:22 -0500 (EST) To: "Ross Williams" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5912: Etc/GMT time utc offset error In-reply-to: <201103031613.p23GDYfj080559@wwwmaster.postgresql.org> References: <201103031613.p23GDYfj080559@wwwmaster.postgresql.org> Comments: In-reply-to "Ross Williams" message dated "Thu, 03 Mar 2011 16:13:34 +0000" Date: Thu, 03 Mar 2011 12:24:21 -0500 Message-ID: <10585.1299173061@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/62 X-Sequence-Number: 29572 "Ross Williams" 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