Skip to content

incorrect date comparison on agenda #4460

Description

@jennifer-richards

Describe the issue

The agenda.html template includes

          {% if now.date <= schedule.meeting.end_date %}

where now = timezone.now().astimezone(pytz.utc) (as set in the agenda() view). The date in the meeting timezone should be used for this comparison, not utc. Ideally, should try to avoid comparing dates - might be better to define a datetime that indicates the end of the meeting.

Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't workingtzawareIssue affecting the tzaware feature branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions