Skip to content

Commit

Permalink
Frontend polishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Nov 1, 2017
1 parent 52fefef commit e1fa25b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/app/scripts/utils/string-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export function formatDataType(field, referenceTimestampStr = null) {
};
},
duration(durationString) {
const duration = moment.duration(parseInt(durationString, 10) * 1000);
const humanizedDuration = moment.duration(parseInt(durationString, 10)).humanize();
return {
value: duration.humanize(),
title: duration.humanize(),
value: humanizedDuration,
title: humanizedDuration,
};
},
};
Expand Down

0 comments on commit e1fa25b

Please sign in to comment.