← Back to team overview

credativ team mailing list archive

[Bug 921476] [NEW] default date format should use one of the most used date format instead of one of the least used one

 

Public bug reported:

'_get_default_date_format' method in
'openerp/addons/base/res/res_lang.py' returns the least used one in the
world according to http://en.wikipedia.org/wiki/Date_format_by_country :
'%m/%d/%Y' which is used in 2 countries in the world: USA and Belize.

IMHO, The default one should be '%d-%m-%Y' which is used by most
countries and also by the biggest population in the world.

This method is used when you install a new language because the
'date_format' is not defined in the data files. So whenever a new
language is added to the system, its date_format is '%m/%d/%Y' which is
wrong in the majority of cases.

I think that method should returns the commonly used '%m/%d/%Y' format
and res.lang data files should add a specific date_format to some
languages when necessary.

** Affects: openobject-server
     Importance: Medium
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/921476

Title:
  default date format should use one of the most used date format
  instead of one of the least used one

Status in OpenERP Server:
  New

Bug description:
  '_get_default_date_format' method in
  'openerp/addons/base/res/res_lang.py' returns the least used one in
  the world according to
  http://en.wikipedia.org/wiki/Date_format_by_country : '%m/%d/%Y' which
  is used in 2 countries in the world: USA and Belize.

  IMHO, The default one should be '%d-%m-%Y' which is used by most
  countries and also by the biggest population in the world.

  This method is used when you install a new language because the
  'date_format' is not defined in the data files. So whenever a new
  language is added to the system, its date_format is '%m/%d/%Y' which
  is wrong in the majority of cases.

  I think that method should returns the commonly used '%m/%d/%Y' format
  and res.lang data files should add a specific date_format to some
  languages when necessary.

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


Follow ups

References