From 531f557f9238b8f2e5032e569cf36f0c05bb4043 Mon Sep 17 00:00:00 2001 From: sarahboyce Date: Thu, 8 Jun 2023 09:51:12 +0200 Subject: 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. --- docs/ref/forms/widgets.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 1fbd5ad4a0..efff81ddbc 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -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 -- cgit v1.3