Fixed layout, relative time. Standardize on use of timeService.
This commit is contained in:
parent
59edea271b
commit
ae777d6639
10 changed files with 40 additions and 34 deletions
|
|
@ -131,9 +131,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
});
|
||||
|
||||
$scope.createdWithinPastDay = function(time) {
|
||||
var now = new Date();
|
||||
var date = new Date(time * 1000);
|
||||
return (now.getTime() - date.getTime()) < (1000 * 60 * 60 * 24);
|
||||
return timeService.withinPastDay(time);
|
||||
};
|
||||
|
||||
$scope.openExternalLink = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue