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

Re: Timezone problems / HAVE_INT_TIMEZINE

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: The Hermit Hacker <scrappy(at)hub(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Timezone problems / HAVE_INT_TIMEZINE
Date: 1998-03-19 05:32:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
>         Sounds reasonable to you want the test changed to:
> #include <stdio.h>
> #include <time.h>
> main() { struct tm *tmstruct; printf("%s\n", tmstruct->timezone); }
> ========================================================================

The structure member looks like tm->tm_gmtoff (an integer). There would
need to be other calls to set it up, unless something like

  main() {struct tm tmstruct, *tm = &tmstruct; tm->tm_gmtoff = 0; }

would be acceptable.

> And, if the compile is HAVE_INT_TIMEZONE set?  to

Actually, if the test fails, then we need to #undef HAVE_INT_TIMEZONE,
although if it would be easier to set it to FALSE then I can pretty
easily fix up the sources to use that.

                  - Tom

In response to

pgsql-hackers by date

Next:From: t-ishiiDate: 1998-03-19 05:34:08
Subject: Re: [HACKERS] First mega-patch...
Previous:From: Bruce MomjianDate: 1998-03-19 04:33:49
Subject: Re: [HACKERS] Re: [PATCHES] patches for 6.2.1p6

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