aboutsummaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorAlban Gruin2018-01-23 22:07:43 +0100
committerAlban Gruin2018-01-23 22:07:43 +0100
commit88d537092fa6e7710b7c3b07c71b94d68140a5c2 (patch)
tree74020e478c7d587fae6d5038c71b08a791a527b4 /feeds.py
parent2a7292acd38ffc1261fe4800a15db5a27a6c871a (diff)
parent94e35d0018cc1210594a08f33ffc27ecfd5bb7ba (diff)
Merge branch 'stable/0.12.z' into prod/pa1ch/0.12.zv0.12.2-pa1ch
Diffstat (limited to 'feeds.py')
-rw-r--r--feeds.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/feeds.py b/feeds.py
index aced5e6..da077f0 100644
--- a/feeds.py
+++ b/feeds.py
@@ -21,6 +21,7 @@ from django.db.models.functions import ExtractWeek, ExtractYear
from django.template import loader
from django.urls import reverse
from django.utils.feedgenerator import Atom1Feed, SyndicationFeed
+from django.utils.timezone import localtime
from icalendar import Calendar, Event
@@ -85,9 +86,9 @@ class IcalFeed(Feed):
def item_extra_kwargs(self, item):
return {"uid": "{0}@celcatsanitizer".format(item.id),
- "dtstart": item.begin,
- "dtend": item.end,
- "dtstamp": item.last_update,
+ "dtstart": localtime(item.begin),
+ "dtend": localtime(item.end),
+ "dtstamp": localtime(item.last_update),
"summary": self.item_summary(item),
"location": format_rooms(item.rooms.all())}