From 65a085b3abe512592ec6a0f447dea58404264b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Mon, 10 Jul 2017 12:57:35 +0200 Subject: [PATCH] Output event instance datatimes as timezone. --- src/program/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program/models.py b/src/program/models.py index f379a417..762de56d 100644 --- a/src/program/models.py +++ b/src/program/models.py @@ -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': [