Re: Pre-1970 dates under Win32
| От | Tom Lane |
|---|---|
| Тема | Re: Pre-1970 dates under Win32 |
| Дата | |
| Msg-id | 29481.1075705035@sss.pgh.pa.us обсуждение |
| Ответ на | Pre-1970 dates under Win32 (Claudio Natoli <claudio.natoli@memetrics.com>) |
| Ответы |
Re: Pre-1970 dates under Win32
|
| Список | 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 по дате отправления: