Opened 17 years ago
Closed 17 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)
Change History (2)
by , 17 years ago
| Attachment: | timesince.patch added |
|---|
comment:1 by , 17 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicat of #9065