X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 78BC1D1B8E4 for ; Wed, 3 Mar 2004 18:00:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 68399-02 for ; Wed, 3 Mar 2004 14:00:30 -0400 (AST) Received: from polaris.pinpointresearch.com (66-7-238-130.cust.telepacific.net [66.7.238.130]) by svr1.postgresql.org (Postfix) with ESMTP id B2519D1B567 for ; Wed, 3 Mar 2004 14:00:02 -0400 (AST) Received: from betelgeuse.pinpointresearch.com (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id 378F2103F9; Wed, 3 Mar 2004 10:00:06 -0800 (PST) From: Steve Crawford Organization: Pinpoint Research To: DHS Webmaster , pgsql-admin Subject: Re: bizarre AGE behaviour Date: Wed, 3 Mar 2004 10:00:05 -0800 User-Agent: KMail/1.5.1 References: <40461395.5324CFEE@dhs-club.com> In-Reply-To: <40461395.5324CFEE@dhs-club.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403031000.05524.scrawford@pinpointresearch.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/16 X-Sequence-Number: 12586 On Wednesday 03 March 2004 9:19 am, DHS Webmaster wrote: > We began encountering some unexpected date related errors this week... > This is good... > network=# select age('04-01-04','03-01-04'); > age > ------- > 1 mon > (1 row) > > This isn't... > network=# select age('05-01-04','03-01-04'); > age > --------------------- > 1 mon 30 days 23:00 > (1 row) > > Now it gets really strange...... > network=# select age('06-01-04','04-01-04'); > age > --------------------- > 1 mon 29 days 23:00 > (1 row) > > This may have been addressed in the past (I subscribe to this list) > and I just missed it, but is there a simple fix for this problem? > Thanks. It was originally addressed long in the past (1784, Paris by Benjamin Franklin): http://webexhibits.org/daylightsaving/ US Daylight Saving Time starts this year on April 4 when 0200 jumps to 0300. The answers PostgreSQL gave are correct. Cheers, Steve