Merge pull request #1931 from browncow5/issue1537

Timeline facet - show max date #1537
This commit is contained in:
Antonin Delpeuch 2019-01-22 08:57:50 +01:00 committed by GitHub
commit 89ee45d001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,8 +288,9 @@ TimeRangeFacet.prototype._setRangeIndicators = function() {
var format = "yyyy-MM-dd"; var format = "yyyy-MM-dd";
this._elmts.statusDiv.html(fromDate.toString(format) + " — " + toDate.toString(format)); this._elmts.statusDiv.html(fromDate.toString(format) + " — " + toDate.toString(format));
} else { } else {
var format = "HH:mm:ss"; var timeOfDayformat = "HH:mm:ss";
this._elmts.statusDiv.html("<b style='margin-right: 4em'>" + fromDate.toString("yyyy-MM-dd") + "</b> " + fromDate.toString(format) + " &mdash; " + toDate.toString(format)); var dayOfYearFormat = "yyyy-MM-dd";
this._elmts.statusDiv.html("<b>" + fromDate.toString(dayOfYearFormat) + "</b> " + fromDate.toString(timeOfDayformat) + " &mdash; " + "<b>" + toDate.toString(dayOfYearFormat) + "</b> " + toDate.toString(timeOfDayformat) );
} }
}; };