Re: Setting timezone: is it bug or intended? - Mailing list pgsql-bugs

From Susanne Ebrecht
Subject Re: Setting timezone: is it bug or intended?
Date
Msg-id 4D8749B5.20407@2ndQuadrant.com
Whole thread Raw
In response to Setting timezone: is it bug or intended?  (Yura Sokolov <funny.falcon@gmail.com>)
Responses Re: Setting timezone: is it bug or intended?  (Yura Sokolov <funny.falcon@gmail.com>)
List pgsql-bugs
Hello Yora Sokolov,

On 18.03.2011 09:22, Yura Sokolov wrote:
>
> postgres=# set timezone='+03:00';
> SET
> postgres=# select now();
>              now
> ------------------------------
>  2011-03-18 05:20:35.46008-03
> (1 row)

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


--
Susanne Ebrecht - 2ndQuadrant
PostgreSQL Development, 24x7 Support, Training and Services
www.2ndQuadrant.com

pgsql-bugs by date:

Previous
From: tomas@tuxteam.de
Date:
Subject: Re: BUG #5936: Cannot connect to Server
Next
From: Susanne Ebrecht
Date:
Subject: Re: BUG #5931: password when setup