Ticket #9065: 9065-fix.diff
File 9065-fix.diff, 532 bytes (added by , 16 years ago) |
---|
-
django/utils/timesince.py
29 29 if d.__class__ is not datetime.datetime: 30 30 d = datetime.datetime(d.year, d.month, d.day) 31 31 32 if now and now.__class__ is not datetime.datetime: 33 now = datetime.datetime(now.year, now.month, now.day) 34 32 35 if not now: 33 36 if d.tzinfo: 34 37 now = datetime.datetime.now(LocalTimezone(d))