Re: to_char(date,'YYYYMMDD') bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: to_char(date,'YYYYMMDD') bug
Date
Msg-id 3827.1036038586@sss.pgh.pa.us
Whole thread Raw
In response to to_char(date,'YYYYMMDD') bug  (Jord Tanner <jord@indygecko.com>)
List pgsql-bugs
Jord Tanner <jord@indygecko.com> writes:
> It looks like to_char is unable to convert dates that fall in the range
> of 01/01/1902 to 12/31/1969 (see below). I am running the Postgresql RPM
> that is distributed with RH 8.0 (7.2.2.1). PGDATESTYLE is set to "SQL".

You need PG 7.2.3; it works around the glibc boys' decision to
deliberately break mktime() for pre-1970 dates.  If you're not happy
about that (and you shouldn't be), complain to them.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Jord Tanner
Date:
Subject: to_char(date,'YYYYMMDD') bug
Next
From: Mats Lofkvist
Date:
Subject: 7.3b1 panic in vacuum