BUG #1649: Date calculation year off-by-one error

From: "Nicholas Vinen" <hb(at)pg(dot)x256(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1649: Date calculation year off-by-one error
Date: 2005-05-04 23:52:48
Message-ID: 20050504235248.62C2FF0B09@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1649
Logged by: Nicholas Vinen
Email address: hb(at)pg(dot)x256(dot)org
PostgreSQL version: 8.0.1
Operating system: Gentoo Linux
Description: Date calculation year off-by-one error
Details:

This is definitely not right:

rt3=# SELECT date_trunc('week', timestamp with time zone '2005-01-02
00:00:00-7');
date_trunc
------------------------
2006-01-02 00:00:00-08
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nicholas Vinen 2005-05-05 00:14:20 BUG #1650: Upgraded postgres, problem went away
Previous Message Nicholas Vinen 2005-05-04 23:30:06 BUG #1648: ISO Year ignores time zone?