pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marek Nos <marek.nos@centrum.cz>
To: pgsql-bugs@postgresql.org
Subject: BUG #6001: date_trunc is not timezone aware
Date: Sun, 1 May 2011 18:48:57 GMT
Message-ID: <201105011848.p41ImvOT084137@wwwmaster.postgresql.org> (raw)


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)



view thread (2+ messages)  latest in thread

Message-ID: <201105011848.p41ImvOT084137@wwwmaster.postgresql.org>
Permalink:  ../201105011848.p41ImvOT084137@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201105011848.p41ImvOT084137@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: marek.nos@centrum.cz
  Subject: Re: BUG #6001: date_trunc is not timezone aware
  In-Reply-To: <201105011848.p41ImvOT084137@wwwmaster.postgresql.org>
  References: <201105011848.p41ImvOT084137@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox