Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDV7F-0004b0-Os for pgsql-sql@arkaria.postgresql.org; Wed, 12 Feb 2014 08:24:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDV7F-00057O-9N for pgsql-sql@arkaria.postgresql.org; Wed, 12 Feb 2014 08:24:21 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDV7E-00057I-Hi for pgsql-sql@postgresql.org; Wed, 12 Feb 2014 08:24:20 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDV7B-0008T1-6M for pgsql-sql@postgresql.org; Wed, 12 Feb 2014 08:24:18 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WDV7A-0001KT-12 for pgsql-sql@postgresql.org; Wed, 12 Feb 2014 00:24:16 -0800 Date: Wed, 12 Feb 2014 00:24:15 -0800 (PST) From: rawi To: pgsql-sql@postgresql.org Message-ID: <1392193455856-5791556.post@n5.nabble.com> In-Reply-To: <52FA3499.3020604@gmail.com> References: <1392105285704-5791371.post@n5.nabble.com> <52FA3499.3020604@gmail.com> Subject: Re: Time AT TIME ZONE: false result using offset instead of time zone name MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.9 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Adrian Klaver-3 wrote >>On 02/10/2014 11:54 PM, rawi wrote: >>[...] >> SELECT CURRENT_TIMESTAMP AT TIME ZONE 'UTC+01'; >> >> timezone >> timestamp without time zone >> --------------------------- >> 2014-02-11 06:23:07.043479 >> >> !!! Two hours earlyer, one hour to the east (Azores), not to the west of >> Greenwich. >> To get my time one hour west from Greenwich I have to ask: >> >> SELECT CURRENT_TIMESTAMP AT TIME ZONE 'UTC-01'; >> >> Is this inverse calculation intently? > > Yes. > > http://www.postgresql.org/docs/9.3/interactive/datatype-datetime.html#DATATYPE-TIMEZONES > > 8.5.3. Time Zones > > .. 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 Oh... oh... Disconcerting... I've just learned, that even javascript is returning negative offsets for western situated browsers... Thank you! Regards, Rawi -- View this message in context: http://postgresql.1045698.n5.nabble.com/Time-AT-TIME-ZONE-false-result-using-offset-instead-of-time-zone-name-tp5791371p5791556.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql