#9080: timeuntil filter cound accept Date type
-----------------------------+----------------------------------------------
 Reporter:  terryh           |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Template system  |     Version:  1.0       
 Keywords:  timeuntil        |       Stage:  Unreviewed
Has_patch:  1                |  
-----------------------------+----------------------------------------------
 timeuntil filter couldn't accept Date type, because return timesince(now,
 d) switch two vealues cause "now" become Date type then TypeError after

 django/utils/timesince.py in timesince(d, now)[[BR]]
 37 [[BR]]
 38         # ignore microsecond part of 'd' since we removed it from
 'now'[[BR]]
 --->39     delta = now - (d - datetime.timedelta(0, 0,
 d.microsecond))[[BR]]

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9080>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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