mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #15982 -- Added DATE_INPUT_FORMATS to forms.DateTimeField default input formats.
This commit is contained in:
committed by
Mariusz Felisiak
parent
0f0abc20be
commit
188b003014
@@ -181,7 +181,9 @@ Forms
|
||||
|
||||
* :class:`django.forms.DateTimeField` now accepts dates in a subset of ISO 8601
|
||||
datetime formats, including optional timezone (e.g. ``2019-10-10T06:47``,
|
||||
``2019-10-10T06:47:23+04:00``, or ``2019-10-10T06:47:23Z``).
|
||||
``2019-10-10T06:47:23+04:00``, or ``2019-10-10T06:47:23Z``). Additionally, it
|
||||
now uses ``DATE_INPUT_FORMATS`` in addition to ``DATETIME_INPUT_FORMATS``
|
||||
when converting a field input to a ``datetime`` value.
|
||||
|
||||
Generic Views
|
||||
~~~~~~~~~~~~~
|
||||
@@ -401,6 +403,9 @@ Miscellaneous
|
||||
Group Specification, i.e. values between 69 and 99 are mapped to the previous
|
||||
century, and values between 0 and 68 are mapped to the current century.
|
||||
|
||||
* Date-only formats are removed from the default list for
|
||||
:setting:`DATETIME_INPUT_FORMATS`.
|
||||
|
||||
.. _deprecated-features-3.1:
|
||||
|
||||
Features deprecated in 3.1
|
||||
|
||||
Reference in New Issue
Block a user