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