From 94e5c3ddf10b0e1f514fb4db447cdeb1aa565513 Mon Sep 17 00:00:00 2001 From: wltsmrz Date: Mon, 23 Dec 2013 14:08:52 -0800 Subject: [PATCH] Use constant Ripple-time offset --- src/js/ripple/transaction.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/ripple/transaction.js b/src/js/ripple/transaction.js index 71bda824..b88f6436 100644 --- a/src/js/ripple/transaction.js +++ b/src/js/ripple/transaction.js @@ -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;