mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 21:25:49 +00:00
Rename toTimestamp/fromTimestamp
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const _ = require('lodash');
|
||||
const transactionParser = require('ripple-lib-transactionparser');
|
||||
const utils = require('../utils');
|
||||
const toTimestamp = utils.common.toTimestamp;
|
||||
const rippleToUnixTimestamp = utils.common.rippleToUnixTimestamp;
|
||||
const BigNumber = require('bignumber.js');
|
||||
|
||||
function adjustQualityForXRP(
|
||||
@@ -19,7 +19,8 @@ function adjustQualityForXRP(
|
||||
}
|
||||
|
||||
function parseTimestamp(tx: {date: string}): string | void {
|
||||
return tx.date ? (new Date(toTimestamp(tx.date))).toISOString() : undefined;
|
||||
return tx.date ? (new Date(rippleToUnixTimestamp(tx.date))).toISOString()
|
||||
: undefined;
|
||||
}
|
||||
|
||||
function removeEmptyCounterparty(amount) {
|
||||
|
||||
Reference in New Issue
Block a user