Properly convert JS time to Ripple time in OfferCreate transactions

This commit is contained in:
wltsmrz
2014-04-18 23:08:19 -07:00
parent 8ffd0b13a3
commit 14f409ff56
2 changed files with 9 additions and 10 deletions

View File

@@ -135,7 +135,12 @@ function fromTimestamp(rpepoch) {
rpepoch = rpepoch.getTime();
}
return Math.round(rpepoch/1000) - 0x386D4380;
return Math.round(rpepoch / 1000) - 0x386D4380;
};
exports.time = {
fromRipple: toTimestamp,
toRipple: fromTimestamp
};
exports.trace = trace;