Opened 16 years ago

Closed 16 years ago

#9080 closed (duplicate)

timeuntil filter cound accept Date type

Reported by: terryh Owned by: nobody
Component: Template system Version: 1.0
Severity: Keywords: timeuntil
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

timeuntil filter couldn't accept Date type, because return timesince(now, d) switch two vealues cause "now" become Date type then TypeError after

django/utils/timesince.py in timesince(d, now)
37
38 # ignore microsecond part of 'd' since we removed it from 'now'
--->39 delta = now - (d - datetime.timedelta(0, 0, d.microsecond))

Attachments (1)

timesince.patch (603 bytes ) - added by terryh 16 years ago.

Download all attachments as: .zip

Change History (2)

by terryh, 16 years ago

Attachment: timesince.patch added

comment:1 by Steingrim Dovland <steingrd@…>, 16 years ago

Resolution: duplicate
Status: newclosed

Duplicat of #9065

Note: See TracTickets for help on using tickets.
Back to Top