Skip site navigation (1) Skip section navigation (2)

Re: Setting timezone: is it bug or intended?

From: Yura Sokolov <funny(dot)falcon(at)gmail(dot)com>
To: Susanne Ebrecht <susanne(at)2ndQuadrant(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Setting timezone: is it bug or intended?
Date: 2011-03-22 22:52:00
Message-ID: 4D892810.5040001@gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
21.03.2011 15:51, Susanne Ebrecht пишет:
> Hello Yora Sokolov,
>
> Maybe this is not a bug - just an inconsistence:
>
> Look here (tested with 9.0):
>
> =# set timezone='+3.5';
> SET
> =# select current_timestamp;
>                now
> ----------------------------------
>  2011-03-21 16:05:34.761112+03:30
> (1 row)
>
> In any case, this should get documented.
>
> Susanne
>
>
My question were about sign of timezone:

postgres=# set timezone='+03'; -- positive
postgres=# select now();
2011-03-18 11:20:29.696671+03 -- positive
postgres=# set timezone='+03:00'; -- positive
2011-03-18 05:20:35.46008-03 -- negative

Is it intended?

Yura Sokolov

In response to

Responses

pgsql-bugs by date

Next:From: Kasia TuszynskaDate: 2011-03-22 23:05:41
Subject: ERROR: character 0xe3809c of encoding "UTF8" has no equivalent in EUC_JP
Previous:From: Etienne RobillardDate: 2011-03-22 22:48:26
Subject: Re: BUG #5937: initdb: FATAL error: could not open relation with OID 2608

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group