From 200c3f0a4bdfb51272cb991adf404e2f4572d25a Mon Sep 17 00:00:00 2001 From: browncow5 Date: Wed, 9 Jan 2019 19:30:33 -0700 Subject: [PATCH] Added a maximum date to the time range. --- main/webapp/modules/core/scripts/facets/timerange-facet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/facets/timerange-facet.js b/main/webapp/modules/core/scripts/facets/timerange-facet.js index db78d56cc..cac08f73c 100644 --- a/main/webapp/modules/core/scripts/facets/timerange-facet.js +++ b/main/webapp/modules/core/scripts/facets/timerange-facet.js @@ -288,8 +288,9 @@ TimeRangeFacet.prototype._setRangeIndicators = function() { var format = "yyyy-MM-dd"; this._elmts.statusDiv.html(fromDate.toString(format) + " — " + toDate.toString(format)); } else { - var format = "HH:mm:ss"; - this._elmts.statusDiv.html("" + fromDate.toString("yyyy-MM-dd") + " " + fromDate.toString(format) + " — " + toDate.toString(format)); + var timeOfDayformat = "HH:mm:ss"; + var dayOfYearFormat = "yyyy-MM-dd"; + this._elmts.statusDiv.html("" + fromDate.toString(dayOfYearFormat) + " " + fromDate.toString(timeOfDayformat) + " — " + toDate.toString(timeOfDayformat) + " " + toDate.toString(dayOfYearFormat) + "" ); } };