Re: lc_time not working? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: lc_time not working?
Date
Msg-id 50EAF562.5060608@gmail.com
Whole thread Raw
In response to Re: lc_time not working?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: lc_time not working? Solved.  ("J. Hondius" <jhondius@rem.nl>)
List pgsql-general
On 01/07/2013 07:56 AM, Tom Lane wrote:
> 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');

Aargh, missed that.

>
>             regards, tom lane
>
>


--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: currval of sequence xxx_seq is not yet defined in this session?
Next
From: Emi Lu
Date:
Subject: spring a string to rows (Postgresql 8.4)