Re: Time AT TIME ZONE: false result using offset instead of time zone name - Mailing list pgsql-sql

From rawi
Subject Re: Time AT TIME ZONE: false result using offset instead of time zone name
Date
Msg-id 1392193455856-5791556.post@n5.nabble.com
Whole thread Raw
In response to Re: Time AT TIME ZONE: false result using offset instead of time zone name  (Adrian Klaver <adrian.klaver@gmail.com>)
Responses Re: Re: Time AT TIME ZONE: false result using offset instead of time zone name
List pgsql-sql
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.



pgsql-sql by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Time AT TIME ZONE: false result using offset instead of time zone name
Next
From: Adrian Klaver
Date:
Subject: Re: Re: Time AT TIME ZONE: false result using offset instead of time zone name