Re: to_char(date,'YYYYMMDD') bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jord Tanner <jord(at)indygecko(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: to_char(date,'YYYYMMDD') bug
Date: 2002-10-31 04:29:46
Message-ID: 3827.1036038586@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Jord Tanner <jord(at)indygecko(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Bartmess 2002-10-31 05:46:31 Re: Bug #808: bison dies with max table size fatal error
Previous Message Robert Treat 2002-10-31 00:21:58 Re: [ADMIN] Fwd: [BUGS] Fwd: FATAL 1: Database dialup does not exist in pg_database