Opened 8 years ago

Closed 8 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: UI/UX:


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/ in timesince(d, now)
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 8 years ago.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by terryh

Attachment: timesince.patch added

comment:1 Changed 8 years ago by Steingrim Dovland <steingrd@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: duplicate
Status: newclosed

Duplicat of #9065

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