From: Tom Lane <tgl@sss.pgh.pa.us>
To: villeja@avoltus.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in timezone-parsing?
Date: Mon, 16 Apr 2007 12:06:43 -0400
Message-ID: <21627.1176739603@sss.pgh.pa.us> (raw)
In-Reply-To: <20070416141541.GA25077@mail>
References: <20070416141541.GA25077@mail>
villeja@avoltus.com writes:
> I found a problem with the parsing of timezone-offsets in the current
> PG-driver. It seems something weird happened between 1921 and 1922, as the
> offset changes from hour-precision to second-precision:
> postgres=> select '1921-01-01'::timestamptz, '1922-01-01'::timestamptz;
> timestamptz | timestamptz
> ------------------------------+------------------------
> 1921-01-01 00:00:00+01:39:52 | 1922-01-01 00:00:00+02
FWIW, that is expected behavior if you're using the Europe/Helsinki time
zone data:
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Helsinki 1:39:52 - LMT 1878 May 31
1:39:52 - HMT 1921 May # Helsinki Mean Time
2:00 Finland EE%sT 1981 Mar 29 2:00
2:00 EU EE%sT
Quite a lot of places were observing local mean time up to the early
1900s, so you'll see very strange GMT offsets for dates that far back.
regards, tom lane
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-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, villeja@avoltus.com
Subject: Re: Bug in timezone-parsing?
In-Reply-To: <21627.1176739603@sss.pgh.pa.us>
References: <20070416141541.GA25077@mail> <21627.1176739603@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