Re: pgsql-server/src/backend/utils/adt datetime.c

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sean Chittenden <sean(at)chittenden(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/src/backend/utils/adt datetime.c
Date: 2002-09-03 21:02:30
Message-ID: 17794.1031086950@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Sean Chittenden <sean(at)chittenden(dot)org> writes:
> I think this closes bug #630 as well (inserting data at 2am on a
> timzone shit). -sc

That would be cool. I don't have a freebsd machine to try it on though;
can you check CVS tip and see?

FWIW, I get

regression=# select timestamptz '2002-4-7 2:0:0.0';
timestamptz
------------------------
2002-04-07 03:00:00-04
(1 row)

but I got that (on HPUX) before the change too. I think it's correct
--- essentially, given an "impossible" time in the spring-forward gap,
we choose to assume that it is meant as local standard time. (In the
other case at fall-back boundaries, an ambiguous time is likewise
taken as standard time not DST.)

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2002-09-03 21:12:39 Re: pgsql-server/src/backend/utils/adt datetime.c
Previous Message Bruce Momjian 2002-09-03 20:56:52 Re: pgsql-server/src/backend/utils/adt datetime.c