Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3818B9066CF for ; Thu, 7 Jun 2012 11:37:35 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Scdq7-0006iP-5e for pgsql-bugs@postgresql.org; Thu, 07 Jun 2012 14:37:34 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q57EbIMo008594; Thu, 7 Jun 2012 10:37:18 -0400 (EDT) From: Tom Lane To: =?ISO-8859-1?Q?Kasper_R=F6nning?= cc: pgsql-bugs@postgresql.org Subject: Re: Issue when displaying TIMESTAMPTZ values In-reply-to: <4FD0B1C4.7040307@reliabit.fi> References: <4FD0B1C4.7040307@reliabit.fi> Comments: In-reply-to =?ISO-8859-1?Q?Kasper_R=F6nning?= message dated "Thu, 07 Jun 2012 16:51:00 +0300" Date: Thu, 07 Jun 2012 10:37:18 -0400 Message-ID: <8593.1339079838@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/53 X-Sequence-Number: 33280 =?ISO-8859-1?Q?Kasper_R=F6nning?= writes: > I seem to have found a bug in Postgres 9.1.3. Apparently timestamp > values are stored correctly in the database, but querying it returns > invalid results. My environment is Windows 7 64bit. The unexpected > result is that timestamps before 1st of May 1921 are displayed > incorrectly when time zone is 'Europe/Helsinki'. This is not incorrect. The Olson timezone database shows: # 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 1983 2:00 EU EE%sT that is, it was only in 1921 that Helsinki adopted "standard" time referenced to the Greenwich meridian. Before that it would have been typical to set clocks by local mean solar time, which is 1:39:52 east of Greenwich. regards, tom lane