From: Tom Lane <tgl@sss.pgh.pa.us>
To: wishy wishy <wishy66@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: date
Date: Fri, 18 Oct 2002 15:19:07 -0400
Message-ID: <24291.1034968747@sss.pgh.pa.us> (raw)
In-Reply-To: <F53s0dt2NCF6TMlz9K90000565d@hotmail.com>
References: <F53s0dt2NCF6TMlz9K90000565d@hotmail.com>
"wishy wishy" <wishy66@hotmail.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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, wishy66@hotmail.com
Subject: Re: date
In-Reply-To: <24291.1034968747@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