Ticket #9672: patch.timesince.diff
File patch.timesince.diff, 445 bytes (added by , 16 years ago) |
---|
-
timesince.py
old new 64 64 now = datetime.datetime.now(LocalTimezone(d)) 65 65 else: 66 66 now = datetime.datetime.now() 67 68 # Convert datetime.date to datetime.datetime for comparison 69 if d.__class__ is not datetime.datetime: 70 d = datetime.datetime(d.year, d.month, d.day) 71 67 72 return timesince(now, d)