Re: date

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "wishy wishy" <wishy66(at)hotmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: date
Date: 2002-10-18 19:19:07
Message-ID: 24291.1034968747@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"wishy wishy" <wishy66(at)hotmail(dot)com> writes:
> we have a PostgreSQL 7.2.2 on i686-pc-linux-gnu, compiled by GCC 2.96
> installation on pogo linux 7.2
> we are facing a data problem when we do the following
> select to_char(to_date('1969-10-22','YYYY-MM-DD'),'YYYY-MM-DD');

> ERROR: Unable to convert date to tm

Recent versions of glibc broke mktime() for dates before 1970.
There is a workaround for this silliness in Postgres 7.2.3.

regards, tom lane

In response to

  • Re: date at 2002-10-18 10:24:50 from wishy wishy

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-10-18 19:31:09 Re: join question
Previous Message Frank Morton 2002-10-18 18:58:13 join question