pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Eric G. Miller <egm2@jps.net>
Cc: PostgreSQL General <pgsql-general@postgresql.org>
Subject: Re: Bug with timestamp !!!
Date: Sun, 13 May 2001 21:31:40 -0400
Message-ID: <4662.989803900@sss.pgh.pa.us> (raw)
In-Reply-To: <20010513173629.B307@calico.local>
References: <9dj2rq$1ij$1@news.tht.net>
	<20010512225651.A17727@calico.local>
	<3449.989767665@sss.pgh.pa.us>
	<20010513164929.A307@calico.local>
	<20010513173629.B307@calico.local>

"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



view thread (11+ messages)  latest in thread

Message-ID: <4662.989803900@sss.pgh.pa.us>
Permalink:  ../4662.989803900@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4662.989803900@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, egm2@jps.net, pgsql-general@postgresql.org
  Subject: Re: Bug with timestamp !!!
  In-Reply-To: <4662.989803900@sss.pgh.pa.us>
  References: <9dj2rq$1ij$1@news.tht.net> <20010512225651.A17727@calico.local> <3449.989767665@sss.pgh.pa.us> <20010513164929.A307@calico.local> <20010513173629.B307@calico.local> <4662.989803900@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox