From 28bcb305d5b05758dceeb7c7cd8ad65c7ec4b477 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 3 May 2014 10:38:40 +0200 Subject: Take into account the client time zone. --- pyaggr3g470r/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pyaggr3g470r/__init__.py') 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. -- cgit