From bf8d11deefaa90cb3811c696f94d5fe21ee92b5e Mon Sep 17 00:00:00 2001 From: idinium96 Date: Sat, 1 Aug 2020 01:51:42 +0800 Subject: [PATCH] fix 50532 years --- src/classes/Pricelist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Pricelist.ts b/src/classes/Pricelist.ts index 3f0887a07..fe3b4afd2 100644 --- a/src/classes/Pricelist.ts +++ b/src/classes/Pricelist.ts @@ -389,7 +389,7 @@ export default class Pricelist extends EventEmitter { // The price of a key in the pricelist can be different from keyPrices because the pricelist is not updated entryKey.buy = new Currencies(buy); entryKey.sell = new Currencies(sell); - entryKey.time = moment().valueOf(); + entryKey.time = Math.trunc(moment().valueOf() / 1000); } }