Ticket #9065: 9065-fix.diff

File 9065-fix.diff, 532 bytes (added by Tom Mortimer-Jones, 16 years ago)

Patch

  • django/utils/timesince.py

     
    2929    if d.__class__ is not datetime.datetime:
    3030        d = datetime.datetime(d.year, d.month, d.day)
    3131
     32    if now and now.__class__ is not datetime.datetime:
     33        now = datetime.datetime(now.year, now.month, now.day)
     34
    3235    if not now:
    3336        if d.tzinfo:
    3437            now = datetime.datetime.now(LocalTimezone(d))
Back to Top