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.
* cc: Claude Paroz (added)
* resolution: => wontfix
* status: new => closed
* component: Template system => Internationalization
Comment:
`TIME_FORMAT` doesn't contain seconds for any builtin locale, so I'm not
sure if the new setting is necessary or would be widely used. Also,
creating a new setting is always controversial. Please first start a
discussion on the DevelopersMailingList, where you'll reach a wider
audience and see what other think, and
[https://docs.djangoproject.com/en/stable/internals/contributing/bugs-and-
features/#requesting-features follow the guidelines with regards to
requesting features].
--
Ticket URL: <https://code.djangoproject.com/ticket/33870#comment:1>