Interactive interface for browsing global, full-resolution satellite imagery
add export, debug date now on state load
Edward Plato8f620b5cd503
diff --git a/web/js/location.js b/web/js/location.jsindex 50a4800ae..99ddd93c4 100644--- a/web/js/location.js+++ b/web/js/location.js@@ -84,7 +84,7 @@ const getParameters = function(config, parameters) {},t: {stateKey: 'date.selected',- initialState: now,+ initialState: now, // ! now is not the same as default util.now() in the date.state due to invoking at different timestype: 'date',options: {serializeNeedsGlobalState: true,diff --git a/web/js/modules/date/util.js b/web/js/modules/date/util.jsindex 2529563fc..7b1e578a9 100644--- a/web/js/modules/date/util.js+++ b/web/js/modules/date/util.js@@ -84,7 +84,7 @@ export function getActiveTime(state) {const activeStr = compare.isCompareA ? 'selected' : 'selectedB';return legacy.date[activeStr];}-var tryCatchDate = function(str, initialState) {+export function tryCatchDate(str, initialState) {try {return util.parseDateUTC(str);} catch (error) {