summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/job.js
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-12-07 11:09:17 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-12-07 11:09:17 +0000
commit139ce1c44587f6920cdb1982c33714ff6cf910b7 (patch)
tree53ce16d2c35b7fa711c860f8eb0ed810a93e9b8c /app/assets/javascripts/job.js
parentf1a98477014ceee1738a6994da9fd17dd4ccea00 (diff)
downloadgitlab-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.js3
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'))),
);
}
}