Skip to content

Commit ec15165

Browse files
committed
Fix for bug 676
- Legacy-Id: 3181
1 parent 95898de commit ec15165

2 files changed

Lines changed: 5 additions & 12 deletions

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ def ical_agenda(request, num=None):
339339
q = request.META.get('QUERY_STRING','') or ""
340340
filter = q.lower().split(',');
341341
include = set(filter)
342+
now = datetime.datetime.utcnow()
342343

343344
for slot in timeslots:
344345
for session in slot.sessions():
@@ -347,5 +348,6 @@ def ical_agenda(request, num=None):
347348

348349
return HttpResponse(render_to_string("meeting/agenda.ics",
349350
{"filter":set(filter), "timeslots":timeslots, "update":update, "meeting":meeting, "venue":venue, "ads":ads,
350-
"plenaryw_agenda":plenaryw_agenda, "plenaryt_agenda":plenaryt_agenda, },
351+
"plenaryw_agenda":plenaryw_agenda, "plenaryt_agenda":plenaryt_agenda,
352+
"now":now},
351353
RequestContext(request)), mimetype="text/calendar")

ietf/templates/meeting/agenda.ics

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{% load humanize %}{% autoescape off %}{% load ietf_filters %}BEGIN:VCALENDAR
22
VERSION:2.0
33
METHOD:PUBLISH
4-
BEGIN:VTIMEZONE
5-
TZID:{% now "T" %}
6-
BEGIN:STANDARD
7-
TZOFFSETFROM:{% now "O" %}
8-
TZOFFSETTO:{% now "O" %}
9-
TZNAME:{% now "T" %}
10-
DTSTART:19700101T000000
11-
END:STANDARD
12-
END:VTIMEZONE
134
{% if meeting.time_zone %}BEGIN:VTIMEZONE
145
TZID:{{meeting.city}}
156
BEGIN:STANDARD
@@ -27,7 +18,7 @@ SUMMARY:{{slot.break_info.name}}
2718
CLASS:PUBLIC
2819
DTSTART{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.break_info.time_desc|slice:":4"}}00
2920
DTEND{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.break_info.time_desc|slice:"5:9"}}00
30-
DTSTAMP;TZID="{% now "T" %}":{% now "Ymd" %}T{% now "Gis" %}
21+
DTSTAMP:{{ now|date:"Ymd" }}T{{ now|date:"His" }}Z
3122
END:VEVENT
3223
{% endif %}{% endifchanged %}{% for session in slot.sessions %}{%for f in filter%}{%ifequal f session.acronym%}BEGIN:VEVENT
3324
UID:ietf-{{meeting.num}}-{{session.acronym}}-{{session.ordinality}}
@@ -37,7 +28,7 @@ STATUS:TENTATIVE
3728
CLASS:PUBLIC
3829
DTSTART{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.time_desc|slice:":4"}}00
3930
DTEND{% if meeting.time_zone %};TZID="{{meeting.city}}"{%endif%}:{{ slot.meeting_date|date:"Ymd" }}T{{slot.time_desc|slice:"5:9"}}00
40-
DTSTAMP;TZID="{% now "T" %}":{% now "Ymd" %}T{% now "Gis" %}
31+
DTSTAMP:{{ now|date:"Ymd" }}T{{ now|date:"His" }}Z
4132
{% if session.description %}DESCRIPTION:
4233
{{ session.description|escapejs }}
4334
{% endif %}END:VEVENT

0 commit comments

Comments
 (0)