pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pszegheo@itnnetworks.com, PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14337: "HDT" time zone is not recognized by PostreSQL 9.5
Date: Fri, 23 Sep 2016 17:27:42 -0400
Message-ID: <29924.1474666062@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=34=cNT1ng53S4zy0f9zZGensKys6P81RKomdiNWNyaSg@mail.gmail.com>
References: <20160923195217.1517.16332@wrigleys.postgresql.org>
	<CAEepm=0Q5k0dubE7iGh8GKxTeiEBhv=o9x6PFPKjKHGApgN-sQ@mail.gmail.com>
	<CAEepm=34=cNT1ng53S4zy0f9zZGensKys6P81RKomdiNWNyaSg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thomas Munro <thomas.munro@enterprisedb.com> writes:
>> On Sat, Sep 24, 2016 at 7:52 AM,  <pszegheo@itnnetworks.com> wrote:
>>> "HDT" time zone is not recognized by PostreSQL 9.5

> Hmm.  src/timezone/data/northamerica does reference HDT though:

Actually, some further digging finds this:

Zone America/Adak	 12:13:21 -	LMT	1867 Oct 18
			-11:46:38 -	LMT	1900 Aug 20 12:00
			-11:00	-	NST	1942
			-11:00	US	N%sT	1946
			-11:00	-	NST	1967 Apr
			-11:00	-	BST	1969
			-11:00	US	B%sT	1983 Oct 30  2:00
			-10:00	US	AH%sT	1983 Nov 30
			-10:00	US	H%sT

So this zone really is using HDT to refer to UTC-9.  But it's someplace
in the Aleutians, not Hawaii, and Wikipedia says the total population of
Adak is 326.  So I remain dubious that we want to add HDT to the standard
abbreviation list --- there are mighty few people for whom it wouldn't be
a typo.

I see we do list it in the tznames/America.txt data file:

HADT   -32400 D  # Hawaii-Aleutian Daylight Time (obsolete abbreviation)
                 #     (America/Adak)
HAST   -36000    # Hawaii-Aleutian Standard Time (obsolete abbreviation)
                 #     (America/Adak)
HDT    -32400 D  # Hawaiian-Aleutian Daylight Time
                 #     (America/Adak)

and that seems like the appropriate treatment.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <29924.1474666062@sss.pgh.pa.us>
Permalink:  ../29924.1474666062@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29924.1474666062@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com
  Subject: Re: BUG #14337: "HDT" time zone is not recognized by PostreSQL 9.5
  In-Reply-To: <29924.1474666062@sss.pgh.pa.us>
  References: <20160923195217.1517.16332@wrigleys.postgresql.org> <CAEepm=0Q5k0dubE7iGh8GKxTeiEBhv=o9x6PFPKjKHGApgN-sQ@mail.gmail.com> <CAEepm=34=cNT1ng53S4zy0f9zZGensKys6P81RKomdiNWNyaSg@mail.gmail.com> <29924.1474666062@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox