diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-12-07 11:09:17 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-12-07 11:09:17 +0000 |
commit | 139ce1c44587f6920cdb1982c33714ff6cf910b7 (patch) | |
tree | 53ce16d2c35b7fa711c860f8eb0ed810a93e9b8c /app/assets/javascripts/job.js | |
parent | f1a98477014ceee1738a6994da9fd17dd4ccea00 (diff) | |
download | gitlab-ce-139ce1c44587f6920cdb1982c33714ff6cf910b7.tar.gz |
Export date utility functions as ES6 modules
Diffstat (limited to 'app/assets/javascripts/job.js')
-rw-r--r-- | app/assets/javascripts/job.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/job.js b/app/assets/javascripts/job.js index cf8fda9a4fa..8c011a36dd6 100644 --- a/app/assets/javascripts/job.js +++ b/app/assets/javascripts/job.js @@ -2,6 +2,7 @@ import _ from 'underscore'; import bp from './breakpoints'; import { bytesToKiB } from './lib/utils/number_utils'; import { setCiStatusFavicon } from './lib/utils/common_utils'; +import { timeFor } from './lib/utils/datetime_utility'; export default class Job { constructor(options) { @@ -260,7 +261,7 @@ export default class Job { if ($date.length) { const date = $date.text(); return $date.text( - gl.utils.timeFor(new Date(date.replace(/([0-9]+)-([0-9]+)-([0-9]+)/g, '$1/$2/$3')), ' '), + timeFor(new Date(date.replace(/([0-9]+)-([0-9]+)-([0-9]+)/g, '$1/$2/$3'))), ); } } |