Use constant Ripple-time offset

This commit is contained in:
wltsmrz
2013-12-23 14:08:52 -08:00
parent caac293be5
commit 94e5c3ddf1

View File

@@ -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;