From 3663d6cf14a02b5682c5d36bf1fed05eef46d6e1 Mon Sep 17 00:00:00 2001 From: Devin Bileck <603793+devinbileck@users.noreply.github.com> Date: Thu, 27 Sep 2018 12:55:02 -0700 Subject: [PATCH] Fix last update timestamp in price feed service --- .../java/bisq/core/provider/price/PriceFeedService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/bisq/core/provider/price/PriceFeedService.java b/core/src/main/java/bisq/core/provider/price/PriceFeedService.java index c3b0f9d7fc..76e646792f 100644 --- a/core/src/main/java/bisq/core/provider/price/PriceFeedService.java +++ b/core/src/main/java/bisq/core/provider/price/PriceFeedService.java @@ -280,13 +280,13 @@ public class PriceFeedService { } public Date getLastRequestTimeStampBtcAverage() { - return new Date(epochInSecondAtLastRequest * 1000); + return new Date(epochInSecondAtLastRequest); } public Date getLastRequestTimeStampPoloniex() { Long ts = timeStampMap.get("btcAverageTs"); if (ts != null) { - return new Date(ts * 1000); + return new Date(ts); } else return new Date(); } @@ -294,7 +294,7 @@ public class PriceFeedService { public Date getLastRequestTimeStampCoinmarketcap() { Long ts = timeStampMap.get("coinmarketcapTs"); if (ts != null) { - return new Date(ts * 1000); + return new Date(ts); } else return new Date(); }