Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8637 closed (fixed)

timeuntil filter crashes with datetime.date values

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

Description

We got this issue after #7201 fixed.

Since datetime.date objects does not have tzinfo attribute, [source:/django/trunk/django/utils/timesince.py#8579 utils.timeuntil] raises AttributeError thus blocking operation.

Change History (4)

comment:1 Changed 7 years ago by anonymous

  • milestone set to 1.0
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 7 years ago by jacob

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(In [8668]) Fixed #8637: fixed timeuntil and date values.

comment:4 Changed 4 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

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