Permalink
Browse files

A failing test for #8354

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3686fc1 commit 429c87fef81f12fa0b6e3e8cf20ae06c67ca7e4d @jacobian jacobian committed Sep 1, 2008
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/regressiontests/datatypes/models.py
@@ -82,4 +82,11 @@ def __str__(self):
>>> Donut.objects.filter(consumed_at__year=2008)
[]
+# TZ-aware datetimes (#8354).
+>>> from django.utils import tzinfo
+>>> dt = datetime.datetime(2008, 8, 31, 16, 20, tzinfo=tzinfo.FixedOffset(0))
+>>> d = Donut(name='Bear claw', consumed_at=dt)
+>>> d.save()
+>>> Donut.objects.filter(consumed_at=dt)
+[<Donut: Bear claw>]
"""}

0 comments on commit 429c87f

Please sign in to comment.