Re: lc_time not working? Solved.

From: "J(dot) Hondius" <jhondius(at)rem(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, tgl(at)sss(dot)pgh(dot)pa(dot)us
Subject: Re: lc_time not working? Solved.
Date: 2013-01-08 11:05:26
Message-ID: 50EBFD76.1080103@rem.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks very much Tom and Adrian.
Solved. I will RTFM better next time.

Thanks again, Joek

Adrian Klaver schreef:
> On 01/07/2013 07:56 AM, Tom Lane wrote:
>> 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');
>
> Aargh, missed that.
>
>>
>> regards, tom lane
>>
>>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stevo Slavić 2013-01-08 11:24:35 Re: Database Design: Maintain Audit Trail of Changes
Previous Message aasat 2013-01-08 10:12:15 How to store clickmap points?