Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Change daily layer max date to be newer than today at 00:00 #924

ZachTRice5fc56d824854
diff --git a/web/js/layers/model.js b/web/js/layers/model.js
index d85be2a8f..9ba9f6da1 100644
--- a/web/js/layers/model.js
+++ b/web/js/layers/model.js
@@ -106,7 +106,7 @@ export function layersModel(models, config) {
if (ignoreRange) {
return {
start: new Date(Date.UTC(1970, 0, 1)),
- end: util.today()
+ end: util.now()
};
}
var min = Number.MAX_VALUE;
@@ -128,20 +128,20 @@ export function layersModel(models, config) {
max = Math.max(max, end);
} else if (def.endDate) {
range = true;
- max = util.today()
+ max = util.now()
.getTime();
}
// If there is a start date but no end date, this is a
// product that is currently being created each day, set
// the max day to today.
if (def.startDate && !def.endDate) {
- max = util.today()
+ max = util.now()
.getTime();
}
});
if (range) {
if (max === 0) {
- max = util.today()
+ max = util.now()
.getTime();
}
return {