c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #03698
[Bug 413197] Re: limited date range
Setting correct status to Fix Released as the error has now been caught and the limitation is correctly reported to the user.
Removing this limitation is the part that we can't currently fix.
** Changed in: openobject-client
Status: Won't Fix => Fix Released
** Changed in: openobject-client
Milestone: None => 6.0
--
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'