mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-21 12:45:50 +00:00
Use constant Ripple-time offset
This commit is contained in:
@@ -475,8 +475,8 @@ Transaction.prototype.offerCreate = function(src, taker_pays, taker_gets, expira
|
|||||||
if (expiration) {
|
if (expiration) {
|
||||||
switch (expiration.constructor) {
|
switch (expiration.constructor) {
|
||||||
case Date:
|
case Date:
|
||||||
var offset = (new Date(2000, 0, 1).getTime()) - (new Date(1970, 0, 1).getTime());
|
//offset = (new Date(2000, 0, 1).getTime()) - (new Date(1970, 0, 1).getTime());
|
||||||
this.tx_json.Expiration = expiration.getTime() - offset;
|
this.tx_json.Expiration = expiration.getTime() - 946684800000;
|
||||||
break;
|
break;
|
||||||
case Number:
|
case Number:
|
||||||
this.tx_json.Expiration = expiration;
|
this.tx_json.Expiration = expiration;
|
||||||
|
|||||||
Reference in New Issue
Block a user