BUG #6001: date_trunc is not timezone aware - Mailing list pgsql-bugs

From Marek Nos
Subject BUG #6001: date_trunc is not timezone aware
Date
Msg-id 201105011848.p41ImvOT084137@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #6001: date_trunc is not timezone aware
List pgsql-bugs
The following bug has been logged online:

Bug reference:      6001
Logged by:          Marek Nos
Email address:      marek.nos@centrum.cz
PostgreSQL version: 9.0
Operating system:   Windows 7
Description:        date_trunc is not timezone aware
Details:

and other like extract() as well

SELECT date_trunc('day', '2011-05-02 02:00:00+05'::timestamptz)

I would expect result as
'2011-05-02 00:00:00+05'
but
'2011-05-01 00:00:00+02' is given (pre conversion to server timezone is done
first)

pgsql-bugs by date:

Previous
From: "Philippe Reyes Courrau"
Date:
Subject: BUG #6000: error de instalacion
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: BUG #6001: date_trunc is not timezone aware