Re: Bug with timestamp !!! - Mailing list pgsql-general

From Tom Lane
Subject Re: Bug with timestamp !!!
Date
Msg-id 4662.989803900@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug with timestamp !!!  ("Eric G. Miller" <egm2@jps.net>)
List pgsql-general
"Eric G. Miller" <egm2@jps.net> writes:
> After doing that, the results become consistent regardless of the order
> of the calls.  You can't use "memset(theTime, 0, sizeof(struct tm))"
> because when tm_isdst = 0 it say daylight savings time is false (which
> you don't know yet from a string like '2001-04-01 02:30:30').

But we don't do that --- we set tm_isdst = -1 so as to ask mktime's
opinion whether the time is DST or not.  That is the case that seems
to have some history-dependent behavior ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Eric G. Miller"
Date:
Subject: Re: Bug with timestamp !!!
Next
From: Hiroshi Inoue
Date:
Subject: Re: [ODBC] Re: Help: Change the SQL query length