[patch] timesince() method is broken when now argument is passed
The timesince() method in django.utils.timesince is broken when the now argument is passed. The code
if now:
t = time.mktime(now)
returns a float, but the code below clearly expects a tuple. Also, the timeuntil() method passes now as a float. Perhaps it should be a tuple or a datetime object.
Change History
(3)
Summary: |
timesince() method is broken when now argument is passed → [patch] timesince() method is broken when now argument is passed
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
(In [1579]) Fixed #977 -- Fixed timesince() utility. Thanks, pgross@…