mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23049 -- Added %a and %A support to Date.strftime.
This enables the admin to display the day as locale's abbreviated/full name if %a/%A is used in the date format.
This commit is contained in:
parent
b81e974e9e
commit
531f557f92
4 changed files with 49 additions and 3 deletions
|
@ -603,7 +603,8 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
|
|||
|
||||
If no ``format`` argument is provided, the default format is the first
|
||||
format found in :setting:`DATE_INPUT_FORMATS` and respects
|
||||
:doc:`/topics/i18n/formatting`.
|
||||
:doc:`/topics/i18n/formatting`. ``%U``, ``%W``, and ``%j`` formats are not
|
||||
supported by this widget.
|
||||
|
||||
``DateTimeInput``
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
@ -622,7 +623,8 @@ These widgets make use of the HTML elements ``input`` and ``textarea``.
|
|||
|
||||
If no ``format`` argument is provided, the default format is the first
|
||||
format found in :setting:`DATETIME_INPUT_FORMATS` and respects
|
||||
:doc:`/topics/i18n/formatting`.
|
||||
:doc:`/topics/i18n/formatting`. ``%U``, ``%W``, and ``%j`` formats are not
|
||||
supported by this widget.
|
||||
|
||||
By default, the microseconds part of the time value is always set to ``0``.
|
||||
If microseconds are required, use a subclass with the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue