fix tx date
This commit is contained in:
parent
8605805a30
commit
632913c561
|
@ -22,7 +22,7 @@ client.getTxHistory({}, function (err, txs) {
|
||||||
console.log("* TX History:")
|
console.log("* TX History:")
|
||||||
|
|
||||||
_.each(txs, function(tx) {
|
_.each(txs, function(tx) {
|
||||||
var time = moment().fromNow(tx.time);
|
var time = moment(tx.time * 1000).fromNow();
|
||||||
var amount = Utils.renderAmount(tx.amount);
|
var amount = Utils.renderAmount(tx.amount);
|
||||||
switch (tx.action) {
|
switch (tx.action) {
|
||||||
case 'received':
|
case 'received':
|
||||||
|
|
Loading…
Reference in New Issue