BUG #6001: date_trunc is not timezone aware

From: "Marek Nos" <marek(dot)nos(at)centrum(dot)cz>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6001: date_trunc is not timezone aware
Date: 2011-05-01 18:48:57
Message-ID: 201105011848.p41ImvOT084137@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6001
Logged by: Marek Nos
Email address: marek(dot)nos(at)centrum(dot)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)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-05-02 10:45:14 Re: BUG #6001: date_trunc is not timezone aware
Previous Message Philippe Reyes Courrau 2011-04-29 23:49:01 BUG #6000: error de instalacion