aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 11:18:05 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 11:18:05 +0200
commit2dd17dee314439fe85be80e67b390bc5280f1722 (patch)
tree2ab742f010fe14ff1f73962d2c31e32c85b9f971 /pyaggr3g470r/views.py
parentUsing datetime filter in all templates. (diff)
downloadnewspipe-2dd17dee314439fe85be80e67b390bc5280f1722.tar.gz
newspipe-2dd17dee314439fe85be80e67b390bc5280f1722.tar.bz2
newspipe-2dd17dee314439fe85be80e67b390bc5280f1722.zip
Available time zonez are defined in conf.py.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 1fb1658c..76343ead 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -42,7 +42,7 @@ import export
if not conf.ON_HEROKU:
import search as fastsearch
from forms import SigninForm, AddFeedForm, ProfileForm
-from pyaggr3g470r import app, db, allowed_file, babel, TIME_ZONE
+from pyaggr3g470r import app, db, allowed_file, babel
from pyaggr3g470r.models import User, Feed, Article, Role
from pyaggr3g470r.decorators import feed_access_required
@@ -122,7 +122,7 @@ def get_locale():
@babel.timezoneselector
def get_timezone():
- return TIME_ZONE[get_locale()]
+ return conf.TIME_ZONE[get_locale()]
#
# Views.
bgstack15