﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2528	the time default filter is broken for midnight time value (always returns '')	django@…	Adrian Holovaty	"Someone on the #django irc channel found this one.

{{{
#!python
>>> midnight = datetime.time(0,0)
>>> bool(midnight)
False
>>>
}}}

Midnight evaluates to false.
Here is the code for the 'time' filter from django.template.defaultfilters:
{{{
#!python
def time(value, arg=None):
    ""Formats a time according to the given format""
    from django.utils.dateformat import time_format
    if not value:  ## BUG!
        return ''  ##
    if arg is None:
        arg = settings.TIME_FORMAT
    return time_format(value, arg)
}}}

due to the 'if not value:' midnight will never be rendered.

"	defect	closed	Template system	dev	normal	fixed	time filter midnight		Unreviewed	0	0	0	0	0	0
