From 56102d5b53c8d2b95b3684661517cc0cb2a6c713 Mon Sep 17 00:00:00 2001 From: small-yellow-rice Date: Fri, 19 Jun 2015 10:58:52 -0400 Subject: [PATCH] @small-yellow-rice upgrading the default version to the latest moment.js release(2.10.3) --- flask_moment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flask_moment.py b/flask_moment.py index 7913afd..1b4527d 100644 --- a/flask_moment.py +++ b/flask_moment.py @@ -5,13 +5,14 @@ class _moment(object): @staticmethod - def include_moment(version='2.5.1', local_js=None): + def include_moment(version='2.10.3', local_js=None): js = '' if local_js is not None: js = '\n' % local_js elif version is not None: + js_filename = 'moment-with-locales.min.js' if StrictVersion(version) >= StrictVersion('2.8.0') else 'moment-with-langs.min.js' js = '\n' % version + 'moment.js/%s/%s">\n' % (version, js_filename) return Markup('''%s