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:
sarahboyce 2023-06-08 09:51:12 +02:00 committed by Mariusz Felisiak
parent b81e974e9e
commit 531f557f92
4 changed files with 49 additions and 3 deletions

View file

@ -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