Re: timezone locale fun

Поиск
Список
Период
Сортировка
От Jochem van Dieten
Тема Re: timezone locale fun
Дата
Msg-id 3DCA95F5.2070107@oli.tudelft.nl
обсуждение исходный текст
Ответ на timezone locale fun  (TJ <tj@nospam.com>)
Список pgsql-general
TJ wrote:

> It appears that a popular solution is to temporarily change the locale
> of the postmaster.  I don't see how this could be a reasonable
> solution, assuming that once the locale is changed - every client
> would have a view of the data with the currently set locale!  If this
> were a PHP or APACHE session variable rather than a PG locale setting
> I would be much happier (btw - is that possible?!).

How about using a PHP session variable to store the timezone of the
client, and then performing selects on the data using:

SELECT field AT TIME ZONE '$client_timezone' FROM table

Jochem


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

Предыдущее
От: markMLl.pgsql-general@telemetry.co.uk
Дата:
Сообщение: Re: timezone locale fun
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Q!