Re: Mismapping of Mountain Time

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Mismapping of Mountain Time
Date: 2011-03-03 23:03:40
Message-ID: 9639.1299193420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Josh Berkus <josh(at)agliodbs(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Josh Berkus 2011-03-03 23:07:44 Re: Mismapping of Mountain Time
Previous Message Josh Berkus 2011-03-03 22:31:06 Mismapping of Mountain Time