localtime() for win32 problem.

From: "Korea PostgreSQL Users' Group" <pgsql-kr(at)postgresql(dot)or(dot)kr>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: localtime() for win32 problem.
Date: 2004-07-29 04:05:45
Message-ID: 000d01c47521$5534f100$cdcb56dc@paolo.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

I found that localtime do not work same between linux and win32.

timet = -1000000; /* minus value */
localtime(&timet);

above codes do not work win32. (in Microsoft C, mingw gcc too)

so, score_timezone() function in src/timezone/pgtz.c should be changed.
this problem is continuous with initdb when initdb run without setting TZ env value.

In response to

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Korea PostgreSQL Users' Group 2004-07-29 04:25:56 Report initdb problem in Korean OS 2.
Previous Message Tom Lane 2004-07-28 21:49:55 Re: win32 pgsql not installable