Thread: Bug #817: Valid timezone +1300 rejected

Bug #817: Valid timezone +1300 rejected

From
pgsql-bugs@postgresql.org
Date:
MI (mi@alma.ch) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Valid timezone +1300 rejected

Long Description
New Zealand Daylight Savings Time time zone is "+1300" (and others as well, I think). Silly, I agree, but that's how it
is.
Postgresql 7.2.2 rejects it as "Bad timestamp external representation".

Sample Code
pms=> create table test (t timestamp);
CREATE
pms=> insert into test values ('Tue, 12 Nov 2002 08:22:37 +0100');
INSERT 71853 1
pms=> insert into test values ('Tue, 12 Nov 2002 08:22:37 +1300');
ERROR:  Bad timestamp external representation 'Tue, 12 Nov 2002 08:22:37 +1300'

No file was uploaded with this report

Re: Bug #817: Valid timezone +1300 rejected

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> Valid timezone +1300 rejected

Hm, this was reported before but didn't get fixed.  I've now fixed it
for 7.3.  It's a one-word change in DecodeTimezone() in
src/backend/utils/adt/datetime.c, if you want to patch your 7.2.

            regards, tom lane