We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0093be commit 3095515Copy full SHA for 3095515
1 file changed
src/dashboard-client/src/models/Job.js
@@ -4,6 +4,8 @@ import NotificationService from '../services/NotificationService'
4
import NewAPIService from '../services/NewAPIService'
5
import store from '../store'
6
import router from '../router'
7
+import moment from 'moment'
8
+
9
const Convert = require('ansi-to-html')
10
11
class Section {
@@ -187,7 +189,7 @@ export default class Job {
187
189
// Replace UTC time with local time
188
190
idx = line.indexOf('|')
191
if (idx > 0) {
- let localTime = date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds()
192
+ let localTime = moment(date).format('HH:mm:ss')
193
line = localTime + line.substr(idx)
194
}
195
0 commit comments