pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Mismapping of Mountain Time
Date: Thu, 03 Mar 2011 18:03:40 -0500
Message-ID: <9639.1299193420@sss.pgh.pa.us> (raw)
In-Reply-To: <4D7016AA.2090609@agliodbs.com>
References: <4D7016AA.2090609@agliodbs.com>

Josh Berkus <josh@agliodbs.com> writes:
> ls -l localtime
> lrwxrwxrwx 1 root root 31 2010-10-18 08:20 localtime ->
> /usr/share/zoneinfo/US/Mountain

> postgres=# select * from pg_settings where name = 'TimeZone';
> setting    | Navajo

> There is actually a time zone "Navajo", which is a *separate* time zone
> from US/Mountain.  Ideas on how this happened?

It's not all that separate: per the Olsen database,

Link	America/Denver		US/Mountain
Link	America/Denver		Navajo

Those are all aliases for the exact same timezone behavior, and PG
doesn't have any good way to choose which one you think is preferred.
It looks like it chooses the shortest name ... so in this case you'll
get Navajo.  If you don't like that, set the timezone setting
explicitly or via the TZ environment variable for the postmaster.

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <9639.1299193420@sss.pgh.pa.us>
Permalink:  ../9639.1299193420@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9639.1299193420@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, josh@agliodbs.com
  Subject: Re: Mismapping of Mountain Time
  In-Reply-To: <9639.1299193420@sss.pgh.pa.us>
  References: <4D7016AA.2090609@agliodbs.com> <9639.1299193420@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