Merge pull request #498 from travis-ci/remove_moment_deprecation

Remove moment deprecation on builds page
This commit is contained in:
Piotr Sarnacki 2016-04-14 14:21:42 +02:00
commit 446a9bc9b1

View File

@ -2,5 +2,6 @@ import { timeAgoInWords, safe } from 'travis/utils/helpers';
import Ember from "ember";
export default Ember.Helper.helper(function(params) {
return safe(moment(params[0]).format('MMMM D, YYYY H:mm:ss') || '-');
let date = new Date(params[0]);
return safe(moment(date).format('MMMM D, YYYY H:mm:ss') || '-');
});