Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added support for live dates (not active for AGU demo)

Tilak Joshi62943c6f2806
diff --git a/js/dateSpan.js b/js/dateSpan.js
index 6854abbe8..f2e23ab2d 100644
--- a/js/dateSpan.js
+++ b/js/dateSpan.js
@@ -57,7 +57,8 @@ SOTE.widget.DateSpan = function(containerId, config){
}
if(config.endDate === undefined){
- config.endDate = new Date("11/30/2011");
+ config.endDate = new Date();
+ config.endDate = new Date(eval(config.endDate.getMonth()+1)+"/"+config.endDate.getDate()+"/"+config.endDate.getFullYear());
}
else{
config.endDate = new Date(config.endDate);