Disable timezone support. Everything is in Europe/Copenhagen anyway.
This commit is contained in:
parent
084782b22d
commit
a3bfd85604
|
@ -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'
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue