Re: [HACKERS] Pre-1970 dates under Win32

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com>
Cc: "'pgsql-hackers-win32(at)postgresql(dot)org'" <pgsql-hackers-win32(at)postgresql(dot)org>, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Pre-1970 dates under Win32
Date: 2004-02-02 06:57:15
Message-ID: 29481.1075705035@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Claudio Natoli 2004-02-02 07:27:33 Re: [HACKERS] Pre-1970 dates under Win32
Previous Message Claudio Natoli 2004-02-02 05:55:37 Pre-1970 dates under Win32

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Claudio Natoli 2004-02-02 07:17:51 Re: [pgsql-hackers-win32] Proposed dirmod.c fix for Win32
Previous Message Claudio Natoli 2004-02-02 06:17:22 Re: CVS source win32 mingw some comile err