BUG #1749: date_trunc('week', ...) is incorrect for some dates - Mailing list pgsql-bugs

From Nick Johnson
Subject BUG #1749: date_trunc('week', ...) is incorrect for some dates
Date
Msg-id 20050704025512.EA039F0B00@svr2.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged online:

Bug reference:      1749
Logged by:          Nick Johnson
Email address:      arachnid@notdot.net
PostgreSQL version: 8.0.3
Operating system:   FreeBSD
Description:        date_trunc('week', ...) is incorrect for some dates
Details:

numa=# SELECT date_trunc('week', '2002-12-31'::date);
       date_trunc
------------------------
 2001-12-31 00:00:00-05
(1 row)

Obviously this isn't the expected behaviour...

pgsql-bugs by date:

Previous
From: "Bartłomiej Rychtarski"
Date:
Subject: BUG #1750: recurrentive views terminates connection
Next
From: Tom Lane
Date:
Subject: Re: Select on pkey returned more than one row