Updated sentinel-2.js (added 1 line, deleted 1 line).

This commit is contained in:
logan
2021-05-20 12:41:17 +00:00
parent 523c59fe1e
commit 97306fdce6

View File

@@ -300,7 +300,7 @@ function filterOnePerMonth(collection) {
var month = 1; var month = 1;
var images = []; var images = [];
while (year <= int(new Date().getFullYear())) { while (year <= parseInt(new Date().getFullYear())) {
while (month <= 12) { while (month <= 12) {
var start = year + "-" + ("0" + month).slice(-2) + "-01"; var start = year + "-" + ("0" + month).slice(-2) + "-01";
var end = year + "-" + ("0" + (month + 1)).slice(-2) + "-01"; var end = year + "-" + ("0" + (month + 1)).slice(-2) + "-01";