Opened 15 years ago

Closed 13 years ago

#13196 closed New feature (fixed)

Display datetime.date values using DATE_FORMAT

Reported by: Beuc Owned by: Aymeric Augustin
Component: contrib.admin Version: dev
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

Description

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

However it doesn't for datetime.date 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 by Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Valera_Grishin, 14 years ago

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 by Luke Plant, 14 years ago

Type: New feature

comment:4 by Luke Plant, 14 years ago

Severity: Normal

comment:5 by Julien Phalip, 14 years ago

UI/UX: set

comment:6 by Aymeric Augustin, 13 years ago

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

comment:7 by Aymeric Augustin, 13 years ago

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