From 7a769c168bd9e3e77515813a10aa81cc35855a3e Mon Sep 17 00:00:00 2001 From: bkfox Date: Wed, 10 May 2017 19:34:16 +0200 Subject: [PATCH] work tz --- aircox/admin.py | 1 - instance/sample_settings.py | 2 +- notes.md | 16 ++++++---------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/aircox/admin.py b/aircox/admin.py index d58500e..2af1bee 100755 --- a/aircox/admin.py +++ b/aircox/admin.py @@ -8,7 +8,6 @@ from django.utils.translation import ugettext as _, ugettext_lazy from aircox.models import * - # # Inlines # diff --git a/instance/sample_settings.py b/instance/sample_settings.py index e038778..66b505c 100755 --- a/instance/sample_settings.py +++ b/instance/sample_settings.py @@ -28,7 +28,7 @@ from .base_settings import * # define TIME_ZONE before the call to timezone.activate -# TIME_ZONE = os.environ.get('TZ') or 'UTC' +TIME_ZONE = os.environ.get('TZ') or 'UTC' timezone.activate(pytz.timezone(TIME_ZONE)) diff --git a/notes.md b/notes.md index 23665e8..4026857 100755 --- a/notes.md +++ b/notes.md @@ -39,17 +39,13 @@ cms: - player support diffusions with multiple archive files - comments -> remove/edit by the author +# Timezone shit: +Check: +- manager/commands: + - diffusions + - streamer +- admin: date printed for diffusion is utc even using localtime => tz.get_current_timezone() stays as UTC -# error when generating diffusions (when all page of a page have been removed): -seems like the numchild attribute is not updated correctly when calling page.delete() - - ``` - File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 977, in add_child - return MP_AddChildHandler(self, **kwargs).process() - File "/srv/apps/aircox/venv/lib/python3.5/site-packages/treebeard/mp_tree.py", line 360, in process - newobj.path = self.node.get_last_child()._inc_path() - AttributeError: 'NoneType' object has no attribute '_inc_path' - ``` # Instance's TODO - menu_top .sections: