Re: date_part bug - Mailing list pgsql-bugs

From Thomas Lockhart
Subject Re: date_part bug
Date
Msg-id 3AC3DF6B.CAA98867@alumni.caltech.edu
Whole thread Raw
In response to date_part bug  (Salvador Mainé <salvamaine@yahoo.com>)
List pgsql-bugs
> I'm using postgres 7.0.2. When I use date_part('day', date) sometimes I
> get wrong values. Ie:
> and date_part('day', '1999-3-28')=27
> and date_part('day', '2000-3-26')=25
> Is it a bug?

It is a problem evaluating day numbers around daylight savings time
transitions. Fixed (I believe) in the upcoming 7.1 release.

                      - Thomas

pgsql-bugs by date:

Previous
From: Salvador Mainé
Date:
Subject: date_part bug
Next
From: Thomas Lockhart
Date:
Subject: Re: [PATCHES] Error in the date field (with NULL value...).Thanks!