Re: Pre-1970 dates under Win32 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Pre-1970 dates under Win32
Date
Msg-id 29481.1075705035@sss.pgh.pa.us
Whole thread Raw
In response to Pre-1970 dates under Win32  (Claudio Natoli <claudio.natoli@memetrics.com>)
Responses Re: Pre-1970 dates under Win32  (Kurt Roeckx <Q@ping.be>)
List pgsql-hackers
Claudio Natoli <claudio.natoli@memetrics.com> writes:
> Under Win32, localtime returns NULL for dates pre 1970.

Count on Microsloth to get it wrong :-(

> If we want to support pre-1970 dates, which I imagine we do, then this
> function requires some serious rework under Win32.

I think the long-term trend here is to implement our own timezone
library and stop relying on libc for this service.  While M$ seems
to have achieved a new low, there are lots of crummy timezone
implementations out there.  I'd not recommend spending a lot of time
on patching the existing code.  Erroring out rather than crashing is
probably sufficient.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Claudio Natoli
Date:
Subject: Pre-1970 dates under Win32
Next
From: Claudio Natoli
Date:
Subject: Re: Pre-1970 dates under Win32