#23665 closed Cleanup/optimization (fixed)
Precedence of "locale-dictated format" not mentioned for `MONTH_DAY_FORMAT` and `YEAR_MONTH_FORMAT` settings
Description ¶
When reading the documentation for SHORT_DATE_FORMAT, and other similar Globalization (i18n/l10n) settings, there is a mention about the use of USE_L10N
.
Note that if
USE_L10N
is set toTrue
, then the corresponding locale-dictated format has higher precedence and will be applied.
However when I was reading the MONTH_DAY_FORMAT and YEAR_MONTH_FORMAT settings there was no mention about USE_L10N
.
I was left unsure as to whether the value of USE_L10N
affected these two settings. It could be worth mentioning explicitly whether it does or not so the reader is clearly aware.
Change History (5)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 10 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I've verified the current behavior by creating a simple
AdminModel
model.Here is the PR: https://github.com/django/django/pull/3510