Question about timestamp with time zone

From: "Jan van der Weijde" <Jan(dot)van(dot)der(dot)Weijde(at)attachmate(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Question about timestamp with time zone
Date: 2006-09-14 13:18:37
Message-ID: 4B9C73D1EB78FE4A81475AE8A553B3C607801E@exch-lei1.attachmate.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

I have an issue with timestamp with time zone I don't understand.

When I insert a time stamp value '1903-08-07 00:00:00+02' into a table
and next select it again using psql I get '1903-08-06 22:19:32+00:19'.
I'm located in The Netherlands and before 1940 there was a so called
Amsterdam Time that is UTC + 20. So that more or less explains the
+00:19 that is returned.
However what I don't understand is that there is also a
'second-correction' of 32 in the timestamp value that is not returned in
the time zone.
I guess the returned values should have been '1903-08-06
22:19:32+00:19:32'. But because the time zone specification does not
allow seconds I would expect '1903-08-06 22:19:00+00:19'

Can anyone explain this?
Thanks for any help!

Regards,
Jan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-09-14 13:24:12 Re: Inherited tables vs UNION ALL views
Previous Message Berend Tober 2006-09-14 12:38:17 Re: remote duplicate rows