diff --git a/app/__init__.py b/app/__init__.py
index 95f8c6c..c52bcaa 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -6,6 +6,7 @@ from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
from flask_mail import Mail
+from flask_moment import Moment
from config import Config
app = Flask(__name__)
@@ -15,6 +16,7 @@ migrate = Migrate(app, db)
login = LoginManager(app)
login.login_view = 'login'
mail = Mail(app)
+moment = Moment(app)
if not app.debug:
if app.config['MAIL_SERVER']:
diff --git a/app/templates/_post.html b/app/templates/_post.html
index 29caf6f..b5b6022 100644
--- a/app/templates/_post.html
+++ b/app/templates/_post.html
@@ -9,7 +9,7 @@
{{ post.author.username }}
- says:
+ said {{ moment(post.timestamp).fromNow() }}:
{{ post.body }}
diff --git a/app/templates/base.html b/app/templates/base.html
index 303ae76..ea22642 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -54,5 +54,6 @@
{% block content %}{% endblock %}
+ {{ moment.include_moment() }}