Bug Fixed
This commit is contained in:
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)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user