[patch] timesince() method is broken when now argument is passed
|Reported by:||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.