Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Format dates to use HH:MM:SS on build. Change parse tool to accept time - Changed processTemporalLayer.py to format daily, monthly, yearly layers into Y-m-d H:M:S format - Changed processTemporalLayer.py to format all layers in allDateRanges to Y-m-d H:M:S and correctly apply start/end dates - Added check for the time format in validateOptions.py to determine if layer is Y-m-d format, then parses to Y-m-d H:M:S - Changed config.startDate to be built using Y-m-d H:M:S format - Changed util.parseDateUTC to accept H:M:S

ZachTRice4062b31443f6
diff --git a/web/js/util/util.js b/web/js/util/util.js
index c77cae94d..d93c45a47 100644
--- a/web/js/util/util.js
+++ b/web/js/util/util.js
@@ -178,7 +178,7 @@ export default (function (self) {
self.parseDateUTC = function (dateAsString) {
var dateTimeArr = dateAsString.split(/T/);
- var yyyymmdd = dateTimeArr[0].split('-');
+ var yyyymmdd = dateTimeArr[0].split(/[\s-]+/);
// Parse elements of date and time
var year = yyyymmdd[0];