pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Glen and Rosanne Eustace <agree@godzone.net.nz>
Cc: Christopher Sawtell <csawtell@xtra.co.nz>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: Problem with Dates
Date: Fri, 26 Jan 2001 13:00:17 -0500
Message-ID: <3075.980532017@sss.pgh.pa.us> (raw)
In-Reply-To: <012701c087bf$a2ae2940$0101a8c0@godzone.net.nz>
References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz>
	<20010124181731.G17481@thune.yy.com>
	<00d401c08729$077cc440$0101a8c0@godzone.net.nz>
	<01012621220800.13520@berty>
	<29575.980521515@sss.pgh.pa.us>
	<012701c087bf$a2ae2940$0101a8c0@godzone.net.nz>

"Glen and Rosanne Eustace" <agree@godzone.net.nz> writes:
> If some one else is running 7.1 already and can just change their
> timezone to New Zealand DT and report the results it would be great.

Well, with TZ set to NZST-12NZDT I get

regression=# select '31/12/2000'::date::timestamp;
        ?column?
------------------------
 2000-12-31 00:00:00+13
(1 row)

regression=# select '31/12/2000'::date + '365 days'::timespan;
        ?column?
------------------------
 2001-12-31 00:00:00+13
(1 row)

This looks promising but I wouldn't call it conclusive, particularly
since you're probably using a different OS than I am (I'm on HPUX
10.20).  It would be good to bang on it some more with NZ daylight
times --- as Christopher says, GMT+13 is a tad unusual.

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <3075.980532017@sss.pgh.pa.us>
Permalink:  ../3075.980532017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3075.980532017@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, agree@godzone.net.nz, csawtell@xtra.co.nz
  Subject: Re: Problem with Dates
  In-Reply-To: <3075.980532017@sss.pgh.pa.us>
  References: <00ff01c0863e$c4ef8620$0101a8c0@godzone.net.nz> <20010124181731.G17481@thune.yy.com> <00d401c08729$077cc440$0101a8c0@godzone.net.nz> <01012621220800.13520@berty> <29575.980521515@sss.pgh.pa.us> <012701c087bf$a2ae2940$0101a8c0@godzone.net.nz> <3075.980532017@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