Re: lc_time not working?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
Cc: jhondius(at)rem(dot)nl, pgsql-general(at)postgresql(dot)org
Subject: Re: lc_time not working?
Date: 2013-01-07 15:56:26
Message-ID: 10781.1357574186@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver <adrian(dot)klaver(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2013-01-07 16:09:26 Re: currval of sequence xxx_seq is not yet defined in this session?
Previous Message Adrian Klaver 2013-01-07 15:13:19 Re: lc_time not working?