Interactive interface for browsing global, full-resolution satellite imagery
remove prevDate offset for year boundary and tick click, fixes #1258
Ed Plato32900d051a23
diff --git a/web/js/date/config.js b/web/js/date/config.jsindex a002ba4b6..ad50e08f5 100644--- a/web/js/date/config.js+++ b/web/js/date/config.js@@ -173,9 +173,6 @@ export function timelineConfig(models, config, ui) {} else if (moment(prevDate).isDST() && !moment(d).isDST()) {prevDate = new Date(prevDate.getTime() - 1 * 60 * 60 * 1000);}- prevDate = new Date(- prevDate.getTime() - prevDate.getTimezoneOffset() * 60000- );return new Date(d.getUTCFullYear(),prevDate.getUTCMonth(),@@ -227,9 +224,6 @@ export function timelineConfig(models, config, ui) {} else if (moment(prevDate).isDST() && !moment(d).isDST()) {prevDate = new Date(prevDate.getTime() - 1 * 60 * 60 * 1000);}- prevDate = new Date(- prevDate.getTime() - prevDate.getTimezoneOffset() * 60000- );return new Date(d.getUTCFullYear(),prevDate.getUTCMonth(),