|
|
|
@ -82,11 +82,11 @@ thinwalletCtrls.controller('TransactionDetailsCtrl', function ($scope,
|
|
|
|
|
$scope.tx_height = data.tx_height === -1 ? "N.A" :data.tx_height;
|
|
|
|
|
$scope.tx_pub_key = data.pub_key;
|
|
|
|
|
$scope.coinbase = data.coinbase;
|
|
|
|
|
$scope.timestamp = new Date(data.timestamp * 1000);
|
|
|
|
|
$scope.timestamp = new Date(data.timestamp);
|
|
|
|
|
$scope.no_outputs = data.num_of_outputs;
|
|
|
|
|
$scope.no_inputs = data.num_of_inputs;
|
|
|
|
|
|
|
|
|
|
var age_duration = moment.duration(new Date() - new Date(data.timestamp * 1000));
|
|
|
|
|
var age_duration = moment.duration(new Date() - new Date(data.timestamp));
|
|
|
|
|
|
|
|
|
|
$scope.tx_age = age_duration.humanize();
|
|
|
|
|
|
|
|
|
|