BUG #3816: Timezone bug - Mailing list pgsql-bugs

From Geert Bijloos
Subject BUG #3816: Timezone bug
Date
Msg-id 200712141554.lBEFsOS1045322@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #3816: Timezone bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #3816: Timezone bug  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      3816
Logged by:          Geert Bijloos
Email address:      geert.bijloos@aeronomie.be
PostgreSQL version: 8.1.3 and 8.2.4
Operating system:   Linux
Description:        Timezone bug
Details:

Try this

SET TIMEZONE TO 'CET';
SELECT (timestamp with time zone '2000-01-01 UT' + interval '86 days 0 hours
5 min 0 sec') at time zone 'UT';

"2000-03-26 23:05:00" -> WRONG

SET TIMEZONE TO 'UTC';
SELECT (timestamp with time zone '2000-01-01 UT' + interval '86 days 0 hours
5 min 0 sec') at time zone 'UT';

"2000-03-27 00:05:00" -> RIGHT

It can be reproduced for several timezones.

pgsql-bugs by date:

Previous
From: alex
Date:
Subject: Bug (#3484) - Invalid page header again
Next
From: Tom Lane
Date:
Subject: Re: Bug (#3484) - Invalid page header again