pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: salva@ronincoders.com
Cc: pgsql-admin@postgresql.org
Subject: Re: date_part bug?
Date: Wed, 28 Mar 2001 10:55:37 -0500
Message-ID: <18217.985794937@sss.pgh.pa.us> (raw)
In-Reply-To: <3AC1C228.EBAD97ED@yahoo.com>
References: <3AC1C228.EBAD97ED@yahoo.com>

Salvador =?iso-8859-1?Q?Main=E9?= <salvamaine@yahoo.com> writes:
> 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

If those dates are daylight-savings transition days where you live,
then this is a known bug (date-to-timestamp conversion is off one hour
on such dates).  It's fixed for 7.1.

			regards, tom lane



view thread (3+ messages)

Message-ID: <18217.985794937@sss.pgh.pa.us>
Permalink:  ../18217.985794937@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18217.985794937@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, salva@ronincoders.com
  Subject: Re: date_part bug?
  In-Reply-To: <18217.985794937@sss.pgh.pa.us>
  References: <3AC1C228.EBAD97ED@yahoo.com> <18217.985794937@sss.pgh.pa.us>

* 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