Re: "HDT" time zone not recognized by PostreSQL 9.5 - Mailing list pgsql-bugs

From Greg Stark
Subject Re: "HDT" time zone not recognized by PostreSQL 9.5
Date
Msg-id CAM-w4HMyDOteaHXttWWhr3F3oHfGt7s5BSDVgrbQGX3J696sqg@mail.gmail.com
Whole thread Raw
In response to Re: "HDT" time zone not recognized by PostreSQL 9.5  (Pavol Szegheo <PSzegheo@itnnetworks.com>)
List pgsql-bugs
On Fri, Sep 23, 2016 at 8:47 PM, Pavol Szegheo <PSzegheo@itnnetworks.com> wrote:
> Neither are the more modern HADT and HAST time zones recognized by PostreSQL
> 9.5

The IANA says:

     The abbreviations for Hawaii-Aleutian standard and daylight times
     have been changed from HAST/HADT to HST/HDT, as per US Government
     Printing Office style.  This affects only America/Adak since 1983,
     as America/Honolulu was already using the new style.

So it looks like HST and HDT should both be accepted but HAST and HADT
should not. "HST" is in the Postgres "Default" abbreviations list but
HDT is missing. There was a push to drop "invented" abbreviations at
some point but it doesn't look at first glance like that ought to have
hit HDT. This may indeed be an unintentional omission, I'm not sure.

The timezonesets are configuration files for Postgres so you should
feel free to edit <pgsqlroot>/share/timezonesets/Default to add HDT or
create your own based on it and set timezone_abbreviations to your new
file. It is listed in America.txt which contains a list of obsolete or
ambiguous abbreviations



--
greg

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: BUG #14338: Problems of quotes with very long text
Next
From: Iurii Popov
Date:
Subject: Re: BUG #14310: Triggers do not fire