BUG #1648: ISO Year ignores time zone?

From: "Nicholas Vinen" <hb(at)pg(dot)x256(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1648: ISO Year ignores time zone?
Date: 2005-05-04 23:30:06
Message-ID: 20050504233006.A7246F0B0F@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1648
Logged by: Nicholas Vinen
Email address: hb(at)pg(dot)x256(dot)org
PostgreSQL version: 8.0.1
Operating system: Gentoo Linux
Description: ISO Year ignores time zone?
Details:

rt3=# SELECT to_char(timestamp with time zone '2003-12-31 14:44:44-08', 'Mon
IYYY');
to_char
----------
Dec 2004
(1 row)

rt3=# SELECT to_char(timestamp with time zone '2003-12-31 14:44:44-08', 'Mon
YYYY');
to_char
----------
Dec 2003
(1 row)

Is that correct? It confused me... there doesn't seem to be a description in
the documentation which mentions IYYY what exactly an ISO year is...

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Nicholas Vinen 2005-05-04 23:52:48 BUG #1649: Date calculation year off-by-one error
Previous Message Oliver Jowett 2005-05-04 21:51:59 Re: BUG #1646: ERROR: column "mycolumn" is of type boolean