Opened 11 years ago

Closed 11 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


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 11 years ago.

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by terryh

Attachment: timesince.patch added

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

Resolution: duplicate
Status: newclosed

Duplicat of #9065

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