Disable timezone support. Everything is in Europe/Copenhagen anyway.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-11 18:15:19 +02:00
parent 084782b22d
commit a3bfd85604
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ STATICFILES_DIRS = [local_dir('static_src')]
LANGUAGE_CODE = 'en-us'
#USE_I18N = True
#USE_L10N = True
USE_TZ = True
USE_TZ = False
SHORT_DATE_FORMAT = 'd/m-Y'
DATE_FORMAT = 'd/m-Y'
DATETIME_FORMAT = 'd/m-Y H:i'

View file

@ -732,8 +732,8 @@ class EventInstance(CampRelatedModel):
'title': self.event.title,
'slug': self.event.slug + '-' + str(self.id),
'event_slug': self.event.slug,
'from': self.when.lower.astimezone().isoformat(),
'to': self.when.upper.astimezone().isoformat(),
'from': self.when.lower.isoformat(),
'to': self.when.upper.isoformat(),
'url': str(self.event.get_absolute_url()),
'id': self.id,
'bg-color': self.event.event_type.color,