aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/__init__.py
diff options
context:
space:
mode:
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