Interactive interface for browsing global, full-resolution satellite imagery
VW-2313 fix date formatting bug (#3897)
Jason Kent803ec05068d0
diff --git a/web/js/modules/natural-events/util.js b/web/js/modules/natural-events/util.jsindex 7e82b0b50..b7cbc783f 100644--- a/web/js/modules/natural-events/util.js+++ b/web/js/modules/natural-events/util.js@@ -168,7 +168,7 @@ export function getDefaultEventDate({ geometry, categories }) {const today = toEventDateString(util.now());// For storms that happened today, get previous dateif (date === today && category === 'Severe Storms') {- [date] = toEventDateString(new Date(geometry[1].date));+ [date] = geometry[1].date.split('T');}return date;}