Re: "HDT" time zone not recognized by PostreSQL 9.5

From: Greg Stark <stark(at)mit(dot)edu>
To: Pavol Szegheo <PSzegheo(at)itnnetworks(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: "HDT" time zone not recognized by PostreSQL 9.5
Date: 2016-09-25 21:24:15
Message-ID: CAM-w4HMyDOteaHXttWWhr3F3oHfGt7s5BSDVgrbQGX3J696sqg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Fri, Sep 23, 2016 at 8:47 PM, Pavol Szegheo <PSzegheo(at)itnnetworks(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Iurii Popov 2016-09-26 09:38:10 Re: BUG #14310: Triggers do not fire
Previous Message Pavel Stehule 2016-09-25 19:46:18 Re: BUG #14338: Problems of quotes with very long text