Re: lc_time not working?
| От | Tom Lane |
|---|---|
| Тема | Re: lc_time not working? |
| Дата | |
| Msg-id | 10781.1357574186@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: lc_time not working? (Adrian Klaver <adrian.klaver@gmail.com>) |
| Ответы |
Re: lc_time not working?
|
| Список | pgsql-general |
Adrian Klaver <adrian.klaver@gmail.com> writes:
> On 01/07/2013 06:45 AM, J. Hondius wrote:
>> I'm not getting my PostgreSQL 9.2 to return the correct lc_time
>> openwave001=# select set_config('lc_time', 'nl_NL', true);
> When you use true it only applies for that transaction.
But he has the same setting in postgresql.conf anyway. I think the real
mistake is here:
>> openwave001=# select to_char(now(),'dd month day yyyy');
To get localized month/day names you need to add the TM prefix to the
field, ie this should be
select to_char(now(),'dd tmmonth tmday yyyy');
regards, tom lane
В списке pgsql-general по дате отправления: