Interactive interface for browsing global, full-resolution satellite imagery
Timeline slider now uses UTC for setting the date
Mike McGannfa1dca47c1c0
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.jsindex 904b3e4f4..1a444944d 100644--- a/web/js/date/wv.date.timeline.js+++ b/web/js/date/wv.date.timeline.js@@ -1407,17 +1407,17 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {var xPos = evt.x || evt.clientX; //FIXME: needs more accuracy in Firefoxvar newDate;var mouseDate = x.invert((xPos-$('#timeline-header').outerWidth()-margin.left));- var currentDate = new Date(model.selected);+ var currentDate = model.selected;switch(zoomLvl){case 0:- newDate = new Date(mouseDate.getUTCFullYear(),currentDate.getUTCMonth(),currentDate.getUTCDate());+ newDate = new Date(Date.UTC(mouseDate.getUTCFullYear(),currentDate.getUTCMonth(),currentDate.getUTCDate()));break;case 1:- newDate = new Date(mouseDate.getUTCFullYear(),mouseDate.getUTCMonth(),currentDate.getUTCDate());+ newDate = new Date(Date.UTC(mouseDate.getUTCFullYear(),mouseDate.getUTCMonth(),currentDate.getUTCDate()));break;case 2:case 3:- newDate = new Date(mouseDate.getUTCFullYear(),mouseDate.getUTCMonth(),mouseDate.getUTCDate());+ newDate = new Date(Date.UTC(mouseDate.getUTCFullYear(),mouseDate.getUTCMonth(),mouseDate.getUTCDate()));break;}