Re: Odd behaviour of timestamptz

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Matteo Beccati <php(at)beccati(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Odd behaviour of timestamptz
Date: 2007-02-21 12:48:07
Message-ID: 20070221124807.GB30975@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 21, 2007 at 09:40:05AM +0100, Matteo Beccati wrote:
> > test=# SELECT * from test;
> > data
> > ---------------------------
> > 1910-01-10 00:00:00+01:24
> > 1990-01-10 00:00:00+01
> > (2 rows)
>
> Actually this one was built from source (CVS HEAD from yesterday), so
> it's not a packaging issue as I first was thinking.

Hmm, 1910 is before the time that timezones where spaced in nice
intervals of an hour, and there where plenty of places in the world
that had very odd offsets relative to what is used today.

Between 1909 and 1937 Amsterdam was 19 minutes 32.13 seconds ahead of
GMT, so I imagine entiring a time in that period will produce similar
results.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Zhang Qian 2007-02-21 12:55:48 Could you send me a copy of pg8.1beta1?Thank you very much!
Previous Message Richard Huxton 2007-02-21 12:40:43 Re: REVOKE ALL