diff --git a/main/webapp/modules/core/scripts/facets/timerange-facet.js b/main/webapp/modules/core/scripts/facets/timerange-facet.js index db78d56cc..cc8aa1e25 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(dayOfYearFormat) + " " + toDate.toString(timeOfDayformat) ); } };