Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

change active layers to use today as the end date instead of the value provided by the GetCapabilities document

Mike McGanna00beceefb0a
diff --git a/web/js/layers/model.js b/web/js/layers/model.js
index d1885093f..878253a7c 100644
--- a/web/js/layers/model.js
+++ b/web/js/layers/model.js
@@ -132,15 +132,8 @@ export function layersModel(models, config) {
max = Math.max(max, end);
} else if (def.endDate) {
range = true;
- let end = util.parseDateUTC(def.endDate)
- .getTime();
- let today = util.today()
+ max = util.now()
.getTime();
- if (end > today) {
- max = Math.max(max, end);
- } else {
- max = Math.max(max, today);
- }
}
// If there is a start date but no end date, this is a
// product that is currently being created each day, set