Opened 9 years ago

Closed 7 years ago

#13196 closed New feature (fixed)

Display values using DATE_FORMAT

Reported by: Beuc Owned by: Aymeric Augustin
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes


The list view in django.contrib.admin uses settings.DATE_FORMAT for DateField's.

However it doesn't for results (e.g. when a custom Model function returns a date): it uses the YYYY-MM-DD format (aka __str__()).

I think it would make sense to display Python dates in the admin interface using the l10n settings.

(same question for datetime/DATETIME_FORMAT)

What do you think?

Change History (7)

comment:1 Changed 9 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 9 years ago by Valera_Grishin

Agreed. Rendering date and datetime in ALL templates (not only admin) must be synced with settings.DATE_FORMAT and settings.DATE_TIME_FORMAT accordingly.

comment:3 Changed 8 years ago by Luke Plant

Type: New feature

comment:4 Changed 8 years ago by Luke Plant

Severity: Normal

comment:5 Changed 8 years ago by Julien Phalip

UI/UX: set

comment:6 Changed 8 years ago by Aymeric Augustin

Easy pickings: unset
Owner: changed from nobody to Aymeric Augustin

comment:7 Changed 7 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top