fix time format

This commit is contained in:
Javier 2016-12-14 15:18:52 -03:00
commit faab393dc0
2 changed files with 12 additions and 0 deletions

View file

@ -25,4 +25,10 @@ angular.module('copayApp.controllers').controller('proposalsController',
});
$scope.openTxpModal = txpModalService.open;
$scope.createdWithinPastDay = function(time) {
var now = new Date();
var date = new Date(time * 1000);
return (now.getTime() - date.getTime()) < (1000 * 60 * 60 * 24);
};
});