← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 729690] Re: [reports] Date format should not rely on the locale of the OpenERP server (e.g for month names)

 

Hello,

Thanks for reporting !

It has been improved at lp:~openerp-dev/openobject-server/trunk-
bug-729690-nch and will be merged soon to the trunk server.


Thanks,

** Changed in: openobject-server
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/729690

Title:
  [reports] Date format should not rely on the locale of the OpenERP
  server (e.g for month names)

Status in OpenERP Server:
  Fix Committed

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!

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/729690/+subscriptions


References