#19370: date filter returns empty string for midnight
---------------------------------+--------------------
Reporter: dbrgn | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------
Python considers midnight (datetime.time(0, 0)) to be `False`. The date
template filter stumbles over this.
When using `{{ midnight|date:"H:i" }}`, Django returns an empty string.
See http://bugs.python.org/issue13936 for discussion about the bug.
I'll post a pull request with the fix on Github in a short while.
--
Ticket URL: <https://code.djangoproject.com/ticket/19370>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.