c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #11313
[Bug 698312] Re: v6rc2 date and time fields can not be saved - Invalid datetime format
Hello,
I think this may be a bug in python's datetime library because this is
what I tried on the python prompt:
>>> import locale
>>> locale.setlocale(locale.LC_ALL,'en_GB.utf8')
'en_GB.utf8'
>>> locale.nl_langinfo(locale.T_FMT)
'%T'
>>> locale.nl_langinfo(locale.D_FMT)
'%d/%m/%y'
>>> dt = '06/01/2011 06'
>>> from datetime import datetime
>>> datetime.strptime(dt,'%d/%m/%y %T')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/_strptime.py", line 317, in _strptime
(bad_directive, format))
ValueError: 'T' is a bad directive in format '%d/%m/%y %T'
>>>
Thanks,
--
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/698312
Title:
v6rc2 date and time fields can not be saved - Invalid datetime format
Status in OpenObject Web Client:
New
Bug description:
latest trunk from yesterday, en_GB as the locale
To replicate this bug:
go to any object that contains a date and time editable field (attendance, task etc)
1 - when you try to save the record, it will not allow you even if you made any changes giving the error - 'Invalid datetime format'
2 - when you try to use calendar widget to select a date and time, it wil insert the time as %T
References