Bug with year as string
This commit is contained in:
1 parent
560997d282
commit
d1c840c13b
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"oneMonth": {
|
||||
"run": "false",
|
||||
"year": "2018",
|
||||
"month": "1"
|
||||
"month": "2"
|
||||
},
|
||||
"noTime": {
|
||||
"run": "false"
|
||||
|
||||
Reference in new issue
Block a user