diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-09 11:23:04 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 11:58:09 +0000 |
commit | de8a6c874b86ae5363864855aed24d8d33005c06 (patch) | |
tree | 9398face19a4dbf92b5ba3fbcc6983b8415c409a /app | |
parent | 3fef5e66dba055e32dda1ccc887ad630d1e61c87 (diff) | |
download | gitlab-ce-de8a6c874b86ae5363864855aed24d8d33005c06.tar.gz |
Removes jQuery timeago
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/environments/components/environment_item.js.es6 | 4 |
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); }, /** |