BUG #1749: date_trunc('week', ...) is incorrect for some dates

From: "Nick Johnson" <arachnid(at)notdot(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1749: date_trunc('week', ...) is incorrect for some dates
Date: 2005-07-04 02:55:12
Message-ID: 20050704025512.EA039F0B00@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches


The following bug has been logged online:

Bug reference: 1749
Logged by: Nick Johnson
Email address: arachnid(at)notdot(dot)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...

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Jean-Max Reymond 2005-07-04 06:14:39 Re: BUG #1739: memory leak in pl/perl with spi_exec_query
Previous Message Tzahi Fadida 2005-07-04 02:18:33 Re: a bug that might be related to BUG #1739

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Fuhr 2005-07-04 03:16:50 Re: contrib/pgcrypto patch for OpenSSL 0.9.8
Previous Message Bruce Momjian 2005-07-04 02:29:37 Re: Constraint Exclusion (Partitioning) - Initial Review