From d1c840c13b55e4004afc6b5409d848574f2d45b4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 17 Feb 2018 09:03:15 +0100 Subject: [PATCH] Bug with year as string --- One-Min-Daily-Candles-Volumes/Interval.js | 2 +- this.bot.config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/One-Min-Daily-Candles-Volumes/Interval.js b/One-Min-Daily-Candles-Volumes/Interval.js index 5da61c15d..67341883e 100644 --- a/One-Min-Daily-Candles-Volumes/Interval.js +++ b/One-Min-Daily-Candles-Volumes/Interval.js @@ -109,7 +109,7 @@ Read the trades from Charly's Output and pack them into daily files with candles let atHeadOfMarket; // This tell us if we are at the month which includes the head of the market according to current datetime. - if ((year === thisDatetime.getUTCFullYear() && parseInt(month) === thisDatetime.getUTCMonth() + 1)) { + if ((parseInt(year) === thisDatetime.getUTCFullYear() && parseInt(month) === thisDatetime.getUTCMonth() + 1)) { atHeadOfMarket = true; diff --git a/this.bot.config.json b/this.bot.config.json index 2b107b516..60c09ec97 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -18,7 +18,7 @@ "oneMonth": { "run": "false", "year": "2018", - "month": "1" + "month": "2" }, "noTime": { "run": "false"