c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16019
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 :(
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/718040
Title:
Wrong representation of dates with month's name
Status in OpenERP Modules (addons):
New
Bug description:
I have changed the date format in English en_US language to %d-%b-%Y.
We have to do this as our tax department requires to show month name in date format to avoid misunderstanding.
But in this case PDF reports in English en_US like order, Invoice and
etc shows date like 12-ôåâ-2011 instead of 12-Feb-2011.
References