From 50fabeafcf51764ac9819519f927419d042cbd32 Mon Sep 17 00:00:00 2001 From: blue-hexagon Date: Sat, 30 Sep 2023 19:08:07 +0100 Subject: [PATCH] Add warning about using native date inputs widgets that uses the type="date" attribute. Django is not capable of formatting native date input browser widgets. For more info, see last comment of this ticket: https://code.djangoproject.com/ticket/34853 --- docs/topics/i18n/formatting.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt index 1010ce2e84..0b4fdc78b9 100644 --- a/docs/topics/i18n/formatting.txt +++ b/docs/topics/i18n/formatting.txt @@ -12,6 +12,14 @@ templates using the format specified for the current Two users accessing the same content may see dates, times and numbers formatted in different ways, depending on the formats for their current locale. +.. warning:: + + Because of how browsers enforce their own locale on to form inputs such as dates, + Django is not capable of formatting native date inputs (inputs that use the + attribute type="date" and similar). This also means that Django does not use + native date inputs by default - as there is nothing it can do to format such + form inputs. + .. note:: To enable number formatting with thousand separators, it is necessary to