#33870: Add a SHORT_TIME_FORMAT to settings.py
-------------------------------------+-------------------------------------
Reporter: Michael | Owner: nobody
Type: New | Status: new
feature |
Component: Template | Version: 4.0
system | Keywords: short time template
Severity: Normal | setting
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Sometimes one wishes to show a time with seconds, and sometimes without.
The current template date/time options include (spot the odd one out):
{{{
DATETIME_FORMAT
DATE_FORMAT
TIME_FORMAT
SHORT_DATETIME_FORMAT
SHORT_DATE_FORMAT
}}}
It would be much easier to handle this scenario with adding a
SHORT_TIME_FORMAT to the set of template datetime fields, so one could do:
{{{
{{ value|date:"SHORT_TIME_FORMAT" }}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33870>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070182414c83bd-f4c54cf6-e34b-4684-b993-4a2dcb83b51f-000000%40eu-central-1.amazonses.com.