pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mw@hesotech.de
To: pgsql-bugs@postgresql.org
Subject: BUG #6656: Wrong timestamptz + interval calculation
Date: Mon, 21 May 2012 18:38:29 +0000
Message-ID: <E1SWXUz-0002tb-Qc@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6656
Logged by:          Marcus Wirsing (Hesotech GmbH)
Email address:      mw@hesotech.de
PostgreSQL version: 9.1.3
Operating system:   Windows 7 64Bit
Description:        

When I execute the statement

select timestamptz '2012-03-01 00:00:00+00' + interval '1 month'

I expect the result:
"2012-04-01 02:00:00+02"

but postgres returns:

"2012-04-01 01:00:00+02"

My local time zone is UTC+1.




view thread (2+ messages)  latest in thread

Message-ID: <E1SWXUz-0002tb-Qc@wrigleys.postgresql.org>
Permalink:  ../E1SWXUz-0002tb-Qc@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1SWXUz-0002tb-Qc@wrigleys.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: mw@hesotech.de
  Subject: Re: BUG #6656: Wrong timestamptz + interval calculation
  In-Reply-To: <E1SWXUz-0002tb-Qc@wrigleys.postgresql.org>
  References: <E1SWXUz-0002tb-Qc@wrigleys.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