Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zolk0-00026q-Li for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 05:15:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zolk0-0000le-2W for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 05:15:12 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zoljz-0000ka-C2 for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 05:15:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zoljw-0001Wj-NS for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 05:15:10 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t9L5F4Qu028303; Wed, 21 Oct 2015 01:15:05 -0400 From: Tom Lane To: dungdm93@live.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13691: Postgres reverse timezone system In-reply-to: <20151021034109.3017.131@wrigleys.postgresql.org> References: <20151021034109.3017.131@wrigleys.postgresql.org> Comments: In-reply-to dungdm93@live.com message dated "Wed, 21 Oct 2015 03:41:09 -0000" Date: Tue, 20 Oct 2015 22:15:05 -0700 Message-ID: <20893.1445404505@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org dungdm93@live.com writes: > The result is correct. So why Postgres reverse timezone system??? The problem is the conflict between POSIX-style time zone naming (in which positive GMT offsets are west of Greenwich) and ISO-8601 time zone notation (in which positive GMT offsets are east of Greenwich). We follow the ISO spec for data value input and output, but time zone names follow the POSIX convention because that's what the Olson/IANA time zone database does. So the zone you are after is called "UTC-7" not "UTC+7". There is more info in the "Time Zones" section of our manual: http://www.postgresql.org/docs/9.4/static/datatype-datetime.html#DATATYPE-TIMEZONES As some wise man once said, the great thing about standards is there are so many to choose from :-( regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs