aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/__init__.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 10:38:40 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-03 10:38:40 +0200
commit28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477 (patch)
tree79d47c8ce7648f23e1ab9f2d12ceb68704fa5a4a /pyaggr3g470r/__init__.py
parentRemoved unused variable. (diff)
downloadnewspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.tar.gz
newspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.tar.bz2
newspipe-28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477.zip
Take into account the client time zone.
Diffstat (limited to 'pyaggr3g470r/__init__.py')
-rw-r--r--pyaggr3g470r/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py
index da978128..708598b1 100644
--- a/pyaggr3g470r/__init__.py
+++ b/pyaggr3g470r/__init__.py
@@ -21,6 +21,15 @@ db = SQLAlchemy(app)
ALLOWED_EXTENSIONS = set(['xml', 'opml'])
+from flask.ext.babel import format_datetime
+app.jinja_env.filters['datetime'] = format_datetime
+
+TIME_ZONE = {
+ "en": "US/Eastern",
+ "fr": "Europe/Paris"
+ }
+
+
def allowed_file(filename):
"""
Check if the uploaded file is allowed.
bgstack15