From 4b3b1672d891362e5f78b0998debddb1c0d21c23 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 7 Nov 2020 19:13:51 +0100 Subject: [PATCH] Bug Fixed --- BollingerBands.js | 2 +- PercentageBandwidth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BollingerBands.js b/BollingerBands.js index 4a8683baa..3a5950ede 100644 --- a/BollingerBands.js +++ b/BollingerBands.js @@ -335,7 +335,7 @@ while (currentDate.valueOf() <= farRightDate.valueOf() + ONE_DAY_IN_MILISECONDS) { - let stringDate = currentDate.getFullYear() + '-' + pad(currentDate.getMonth() + 1, 2) + '-' + pad(currentDate.getDate(), 2); + let stringDate = currentDate.getUTCFullYear() + '-' + pad(currentDate.getUTCMonth() + 1, 2) + '-' + pad(currentDate.getUTCDate(), 2); let dailyFile = fileCursor.files.get(stringDate); diff --git a/PercentageBandwidth.js b/PercentageBandwidth.js index c32569874..0f38df5b2 100644 --- a/PercentageBandwidth.js +++ b/PercentageBandwidth.js @@ -315,7 +315,7 @@ while (currentDate.valueOf() <= farRightDate.valueOf() + ONE_DAY_IN_MILISECONDS) { - let stringDate = currentDate.getFullYear() + '-' + pad(currentDate.getMonth() + 1, 2) + '-' + pad(currentDate.getDate(), 2); + let stringDate = currentDate.getUTCFullYear() + '-' + pad(currentDate.getUTCMonth() + 1, 2) + '-' + pad(currentDate.getUTCDate(), 2); let dailyFile = fileCursor.files.get(stringDate);