Interactive interface for browsing global, full-resolution satellite imagery
format gif display dates
Jason Kentaca4b0b9906b
diff --git a/web/js/modules/animation/selectors.js b/web/js/modules/animation/selectors.jsindex 9fc468c44..cc98175a7 100644--- a/web/js/modules/animation/selectors.js+++ b/web/js/modules/animation/selectors.js@@ -6,6 +6,8 @@ import {} from '../image-download/util';import { subdailyLayersActive, getLayers } from '../layers/selectors';import { TIME_SCALE_FROM_NUMBER } from '../date/constants';+import { formatDisplayDate } from '../date/util';+/** loops through dates and created image* download urls and pushs them to an@@ -48,11 +50,7 @@ export default function getImageArray(while (current <= toDate) {j += 1;- if (isSubDaily) {- strDate = util.toISOStringMinutes(current);- } else {- strDate = util.toISOStringDate(current);- }+ strDate = formatDisplayDate(current, isSubDaily);products = getProducts(current, state);const lonlats = imageUtilGetCoordsFromPixelValues(boundaries, map.ui.selected);diff --git a/web/js/util/util.js b/web/js/util/util.jsindex bef45b618..7025046b9 100644--- a/web/js/util/util.js+++ b/web/js/util/util.js@@ -231,19 +231,6 @@ export default (function(self) {return `${date.toISOString().split('.')[0]}Z`;};- /**- * Converts a time into an ISO string without seconds.- *- * @method toISOStringMinutes- * @static- * @param {Date} date the date to convert- * @return {string} ISO string in the form of `YYYY-MM-DDThh:mmZ`.- */- self.toISOStringMinutes = function(date) {- const parts = date.toISOString().split(':');- return `${parts[0]}:${parts[1]}Z`;- };-/*** Round input time to one minute*