← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 413197] Re: limited date range

 

Sorry, this is a limitation of the current Python versions, and we absolutely don't want to use the non-portable MX libraries, or re-implement our own datetime library.
The issue has been reported upstream by many people, feel free to insist on it, an example here: http://bugs.python.org/issue1777412

The clients now warn about the date range limitation, which is of course better than the error you were seeing.
Thanks for the report!

** Bug watch added: Python Roundup #1777412
   http://bugs.python.org/issue1777412

** Changed in: openobject-client
       Status: In Progress => Won't Fix

** Changed in: openobject-client
     Assignee: Jay (OpenERP) (jvo-openerp) => (unassigned)

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

Status in OpenObject GTK Client: Fix Released
Status in OpenObject Web Client: Invalid

Bug description:
rev 2572

the date "May 20th 1223" crashes the web client 
(it was a wrong date - but a valid one - entered with Koo)

 /home/terp/OpenERP/openobject-client-web/openerp/i18n/format.py in format_datetime(value=(1223, 5, 20, 0, 0, 0, 5, 140, -1), kind=u'date', as_timetuple=False)
  126         return value
  127 
  128     return time.strftime(local_format, value)
  129 
  130 def parse_datetime(value, kind="datetime", as_timetuple=False):
global time = <module 'time' from '/usr/lib64/python2.5/lib-dynload/time.so'>, time.strftime = <built-in function strftime>, local_format = u'%m/%d/%Y', value = (1223, 5, 20, 0, 0, 0, 5, 140, -1)

<type 'exceptions.ValueError'>: year out of range
      args = ('year out of range',)
      message = 'year out of range'