Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers-win32 by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group