Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2020-11-07 19:14:13 +01:00
1 parent ae9c2dbfb8
commit ec0d7bd96f
2 files changed
+4 -4

No files matched your search

@@ -418,7 +418,7 @@ function newPlotter() {
records = []
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)
+3 -3
View File
@@ -7,9 +7,9 @@ function newSuperalgosUtilitiesDates() {
function formatDate(date) {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear();
month = '' + (d.getUTCMonth() + 1),
day = '' + d.getUTCDate(),
year = d.getUTCFullYear();
if (month.length < 2)
month = '0' + month;