From f5c2f8e33eb60bfe2dc13584615b7bbf5ba4c27a Mon Sep 17 00:00:00 2001 From: Joseph Hill Date: Wed, 11 Jan 2017 23:30:33 -0500 Subject: [PATCH] Removed Date() constructor call in updateMarkers() function. --- MapScript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MapScript.js b/MapScript.js index 54e5ffa..119a2aa 100644 --- a/MapScript.js +++ b/MapScript.js @@ -51,7 +51,7 @@ function addMarker(lt, ln, prov, timeMillis) { function updateMarkers(timeStart, timeEnd) { for (var i = 0; i < markersArr.length; i++) { thisMarker = markersArr[i]; - markerTime = new Date(thisMarker.timeStamp); + markerTime = thisMarker.timeStamp; if (markerTime < timeStart || markerTime > timeEnd) { thisMarker.setMap(null); }