From 82179ccbbb69dfc3c2d2822683809c4a2beb9021 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 28 Aug 2008 16:31:50 +0000 Subject: [PATCH] Fixed #8637: fixed timeuntil and date values. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8668 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/timesince.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/timesince.py b/django/utils/timesince.py index 1ce3550580..1142e00d29 100644 --- a/django/utils/timesince.py +++ b/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()