From de8a6c874b86ae5363864855aed24d8d33005c06 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 9 Nov 2016 11:23:04 +0000 Subject: Removes jQuery timeago --- .../javascripts/environments/components/environment_item.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/assets/javascripts/environments/components/environment_item.js.es6 b/app/assets/javascripts/environments/components/environment_item.js.es6 index 29c0316228e..05f0483c198 100644 --- a/app/assets/javascripts/environments/components/environment_item.js.es6 +++ b/app/assets/javascripts/environments/components/environment_item.js.es6 @@ -130,7 +130,9 @@ * @returns {String} */ createdDate() { - return $.timeago(this.model.created_at); + const timeagoInstance = new timeago(); + + return timeagoInstance.format(this.model.created_at); }, /** -- cgit v1.2.1