Incorrect timestamp in tx details

https://github.com/moneroexamples/openmonero/issues/112
pull/113/head
moneroexamples 6 years ago
parent 66f039f218
commit 53fa5671a3

@ -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();

Loading…
Cancel
Save