mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +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) {
|
||||
switch (expiration.constructor) {
|
||||
case Date:
|
||||
var offset = (new Date(2000, 0, 1).getTime()) - (new Date(1970, 0, 1).getTime());
|
||||
this.tx_json.Expiration = expiration.getTime() - offset;
|
||||
//offset = (new Date(2000, 0, 1).getTime()) - (new Date(1970, 0, 1).getTime());
|
||||
this.tx_json.Expiration = expiration.getTime() - 946684800000;
|
||||
break;
|
||||
case Number:
|
||||
this.tx_json.Expiration = expiration;
|
||||
|
||||
Reference in New Issue
Block a user