Author: jacob
Date: 2008-08-28 11:31:50 -0500 (Thu, 28 Aug 2008)
New Revision: 8668

Modified:
   django/trunk/django/utils/timesince.py
Log:
Fixed #8637: fixed timeuntil and date values.

Modified: django/trunk/django/utils/timesince.py
===================================================================
--- django/trunk/django/utils/timesince.py      2008-08-28 16:27:19 UTC (rev 
8667)
+++ django/trunk/django/utils/timesince.py      2008-08-28 16:31:50 UTC (rev 
8668)
@@ -60,7 +60,7 @@
     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()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to