From: Andre Schubert <andre.schubert@geyer.kabeljournal.de>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Possible Date-Time Bug????
Date: Fri, 16 Nov 2001 13:26:51 +0100
Message-ID: <3BF5060B.3114EC2F@geyer.kabeljournal.de> (raw)
Hi all,
i think i found a bug in postgresql date/datetime objects.
examples:
select date_trunc('month',date('2002-03-01')+timespan('1
month'))-timespan('24 hours');
returns 2002-03-30 23:00:00+01
select date_trunc('month',date('2002-03-01')+timespan('1
month'))-timespan('23 hours');
returns 2002-03-31 00:00:00+01
select date_trunc('month',date('2001-03-01')+timespan('1
month'))-timespan('24 hours');
returns 2001-03-31 00:00:00+02
select date_trunc('month',date('2001-03-01')+timespan('1
month'))-timespan('23 hours');
returns 2001-03-31 01:00:00+02
PostgreSQL 7.1.2 is on a Linux-Box with Immunix RedHat 6.2.
thanks as
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: andre.schubert@geyer.kabeljournal.de
Subject: Re: Possible Date-Time Bug????
In-Reply-To: <3BF5060B.3114EC2F@geyer.kabeljournal.de>
References: <3BF5060B.3114EC2F@geyer.kabeljournal.de>
* 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