| От | Tom Lane |
|---|---|
| Тема | Re: Determining/Setting a server's time zone |
| Дата | |
| Msg-id | 11404.1237861930@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Determining/Setting a server's time zone (Madison Kelly <linux@alteeve.com>) |
| Список | pgsql-general |
Madison Kelly <linux@alteeve.com> writes:
> Server (PostgreSQL 8.1):
> $ date
> Mon Mar 23 20:07:20 EDT 2009
> db=> show timezone;
> TimeZone
> ----------
> GMT
> (1 row)
Hmm. Apparently, this machine is configured so that TZ is set properly
in the environment of user login processes (perhaps in /etc/profile?)
but stuff launched from init sees TZ unset or set to GMT. Messing with
the init environment might break some other program that wants it to be
GMT, so changing postgresql.conf is the best answer.
> My concern with forcing a value in the postgresql.conf file is
> forgetting to update the conf file when EDT/EST changes...
As Scott said, you select a zone specification that is DST-aware;
you don't have to change it every six months, or indeed ever unless
you move.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера