← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 729690] Re: Date format should not rely on the locale of the OpenERP server

 

The provided fixed unlock the interface. But the issue of the locale for
the textual name of the month remains. So I opened
https://bugs.launchpad.net/openobject-addons/+bug/729690

-- 
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/729690

Title:
  Date format should not rely on the locale of the OpenERP server

Status in OpenERP Modules (addons):
  New

Bug description:
  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 !

  The same of course when you change the french date format you get the
  month name in english

  I already documented this in https://bugs.launchpad.net/openobject-
  addons/+bug/718040

  And they fixed the 'easy' part of it. It remains that the server
  locale is used and we cannot print all date formats correctly. :

  This was a comment from xrg

  >>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 :(

  But anyway this need to be cleaned. Thanks!



References