Bug with year as string

This commit is contained in:
Luis Fernando Molina committed 2018-02-17 09:03:15 +01:00
1 parent 560997d282
commit d1c840c13b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -18,7 +18,7 @@
"oneMonth": {
"run": "false",
"year": "2018",
"month": "1"
"month": "2"
},
"noTime": {
"run": "false"