summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-08-12 05:09:12 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-08-12 05:09:12 +0000
commit74f5d2b9b0c37e4ccbd5f303c4ab3d6400a95c59 (patch)
treeaa59609d7081df39bde716ebfe54159588284a52 /tests
parent6f8e9be24a0c7208ebd6a3c72ec622ca02d6fc09 (diff)
Fixed #2528 -- Fixed 'time' template filter for midnight time value. Thanks, django@dougma.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/othertests/defaultfilters.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/othertests/defaultfilters.py b/tests/othertests/defaultfilters.py
index 1636b948d0..9b1cfda833 100644
--- a/tests/othertests/defaultfilters.py
+++ b/tests/othertests/defaultfilters.py
@@ -231,6 +231,9 @@ False
>>> time(datetime.time(13), "h")
'01'
+>>> time(datetime.time(0), "h")
+'12'
+
# real testing is done in timesince.py, where we can provide our own 'now'
>>> timesince(datetime.datetime.now() - datetime.timedelta(1))
'1 day'