Comment 3 for bug 718040

Revision history for this message
xrg (xrg) wrote : Re: [Bug 718040] Re: Wrong representation of dates with month's name

On Sunday 13 February 2011, you wrote:
> I think, I have similar issue. I hope I am not polluting this bug
> report.
>
> I changed the en_US default date to get the Month name : %B %d, %Y in
> order to get February 13, 2011. I
>
> First surprise: the month name seems to be taken from the locale of the
> server - On ubuntu I realized this because my desktop was in French: so
> I got février 2011 !

Sadly, this is a library issue, a bit hard to workaround:
the underlying glibc and python libraries that format these strings do NOT
take a language argument, but instead rely on the per-process environment
setting of LC_TIME or LANGUAGE.

This means that we might change the global setting of date format for all the
OpenERP server, but cannot specify per-report or per-client locale for dates.
So changing it there cannot be enough :(