Remove moment deprecation on builds page

See https://github.com/moment/moment/issues/1407 for more details. All that was needed was to manually instantiate a new Date() object
This commit is contained in:
Curtis Ekstrom 2016-04-14 13:02:25 +02:00
parent 7601173aaa
commit ee4b26a7d7
No known key found for this signature in database
GPG Key ID: CDE831E4F18FEB65

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') || '-');
});