mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
A failing test for #8354
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3686fc189a
commit
429c87fef8
1 changed files with 7 additions and 0 deletions
|
@ -82,4 +82,11 @@ datetime.datetime(2007, 4, 20, 16, 19, 59)
|
||||||
>>> Donut.objects.filter(consumed_at__year=2008)
|
>>> 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>]
|
||||||
"""}
|
"""}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue