Re: [Django] #34004: DateTimeField for Forms does not always respect input_formats (was: Bug: DateTimeField for Forms does not always respect input_formats)

2 views
Skip to first unread message

Django

unread,
Sep 11, 2022, 4:27:20 AM9/11/22
to django-...@googlegroups.com
#34004: DateTimeField for Forms does not always respect input_formats
--------------------------------+--------------------------------------
Reporter: Emily Hontoria | Owner: nobody
Type: Bug | Status: closed
Component: Forms | Version: 3.1
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

This was changed in Django 3.1 (see
1487f16f2d29c7aeaf48117d02a1d7bbeafa3d94 and #11385). It's also
[https://docs.djangoproject.com/en/3.2/ref/forms/fields/#datetimefield
documented]:
> ''"The field always accepts strings in ISO 8601 formatted dates or
similar recognized by parse_datetime()"''

> ''Changed in Django 3.1:''
>
> ''Support for ISO 8601 date string parsing (including optional timezone)
was added.''

--
Ticket URL: <https://code.djangoproject.com/ticket/34004#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages