summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/assets/javascripts/environments/components/environment_item.js.es64
1 files changed, 3 insertions, 1 deletions
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);
},
/**