Output event instance datatimes as timezone.

This commit is contained in:
Víðir Valberg Guðmundsson 2017-07-10 12:57:35 +02:00
parent c313397def
commit 65a085b3ab

View file

@ -471,8 +471,8 @@ class EventInstance(CampRelatedModel):
'title': self.event.title,
'event_slug': self.event.slug,
'abstract': abstract,
'from': self.when.lower.isoformat(),
'to': self.when.upper.isoformat(),
'from': self.when.lower.astimezone().isoformat(),
'to': self.when.upper.astimezone().isoformat(),
'url': str(self.event.get_absolute_url()),
'id': self.id,
'speakers': [