Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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 ( 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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group