Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8637: fixed timeuntil and date values.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 82179ccbbb69dfc3c2d2822683809c4a2beb9021 1 parent 2e7a87c
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/timesince.py
View
2  django/utils/timesince.py
@@ -60,7 +60,7 @@ def timeuntil(d, now=None):
the given time.
"""
if not now:
- if d.tzinfo:
+ if getattr(d, 'tzinfo', None):
now = datetime.datetime.now(LocalTimezone(d))
else:
now = datetime.datetime.now()
Please sign in to comment.
Something went wrong with that request. Please try again.