Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed bug where the end date was not being included in the configuraiton

Mike McGannc6535c29ffac
diff --git a/bin/wv-options-wmts b/bin/wv-options-wmts
index 4b5bc1038..f48cc2622 100755
--- a/bin/wv-options-wmts
+++ b/bin/wv-options-wmts
@@ -92,7 +92,7 @@ def process_layer(gc_layer, wv_layers, colormaps):
times = range.split('/')
start_date = min(start_date,
datetime.strptime(times[0], "%Y-%m-%d"))
- end_date = min(end_date,
+ end_date = max(end_date,
datetime.strptime(times[1], "%Y-%m-%d"))
wv_layer["startDate"] = start_date.strftime("%Y-%m-%d")
if end_date != datetime.min: