#11385: DateTimeField doesn't accept ISO 8601 formatted date string ---------------------------------------------------+------------------------ Reporter: jtiai | Owner: nobody Status: closed | Milestone: Component: Database layer (models, ORM) | Version: 1.0 Resolution: wontfix | Keywords: datetime orm format Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Comment (by kmike):
I think the problem can't be resolved with DATETIME_INPUT_FORMATS tweaking. ISO8601 format allows timezone info: '2010-09-01T19:52:15+04:00'. Such strings can't be parsed with python's strptime because python's strptime doesn't support '%z' format char (http://bugs.python.org/issue6641). So DATETIME_INPUT_FORMATS directive is not helpful for ISO8601 handling. The solution is probably to use custom form field. -- Ticket URL: <http://code.djangoproject.com/ticket/11385#comment:2> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.