Subject: BUG #3816: Timezone bug
From: geert.bijloos@aeronomie.be ("Geert Bijloos")
Date: 12/14/2007 3:54:24 PM
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.
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Subject: BUG #3816: Timezone bug
From: tgl@sss.pgh.pa.us (Tom Lane)
Date: 12/14/2007 11:35:14 AM
"Geert Bijloos" <geert.bijloos@aeronomie.be> writes:
> 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
On what grounds do you claim that that's wrong?
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
|