Re: different result between 8.3 and 8.5 (to_timestamp function)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: different result between 8.3 and 8.5 (to_timestamp function)
Date: 2009-11-16 15:43:58
Message-ID: 19512.1258386238@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> 2009/11/16 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> What timezone setting are you using? I'd bet a great deal that
>> +00:57:44 is what the Olsen database shows as the LMT offset for
>> your zone before standardized timezones were adopted.

> I am using CET.

"CET" covers a multitude of sins, but I suspect it's specifically
Europe/Prague:

# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Prague 0:57:44 - LMT 1850
0:57:44 - PMT 1891 Oct # Prague Mean Time
1:00 C-Eur CE%sT 1944 Sep 17 2:00s
1:00 Czech CE%sT 1979
1:00 EU CE%sT

So midnight local time corresponds to 00:57:44 GMT before 1891.
If you think this is wrong, use another zone, or take it up with
the zic folk.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2009-11-16 16:04:37 Re: different result between 8.3 and 8.5 (to_timestamp function)
Previous Message Pavel Stehule 2009-11-16 15:33:55 Re: different result between 8.3 and 8.5 (to_timestamp function)