Re: Mismapping of Mountain Time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Mismapping of Mountain Time
Дата
Msg-id 9639.1299193420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Mismapping of Mountain Time  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Mismapping of Mountain Time  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: Mismapping of Mountain Time  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Mismapping of Mountain Time
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Mismapping of Mountain Time