﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35293	"Django 5.x changes the date format on an <input type=""date""> from ""2012-10-01"" to ""01/10/2012"""	Shaheed Haque	nobody	"We are attempting to migrate from Django 4.11 to Django 5.0.latest. Our tests identified that Date inputs which were previous rendered with a ""value"" attribute in ISO8601 date format now seem to be rendered using en-GB. Here is what the 4.x renders:

{{{
<input type=""date"" name=""..."" value=""2012-10-01"" class="" form-control"" required="""" id=""..."">
}}}

versus what 5.x renders:

{{{
<input type=""date"" name=""..."" value=""01/10/2012"" class="" form-control"" required="""" aria-describedby=""..."" id=""..."">
}}}

Our settings have not changed. Here is a subset of what we have:

{{{
LANGUAGE_CODE = 'en-gb'
LANGUAGES = (
    ('en-gb', _('English (GB)')),
)
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = False
USE_TZ = True
}}}

Note that we do NOT have any of the DATE_FORMAT, DATE_INPUT_FORMATS etc. set, so they should have their default values. I have reviewed the release notes but did not see anything relevant. I have tried debugging the code in django.utils.formats but is not clear to me where the difference originates.

In case it is relevant, we are using the Jinja backend with bootstrap styling and our own templates, but the core ""field"" rendering should be whatever Django does.
"	Bug	closed	Template system	5.0	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
