From b528561f20b5ca3f4bbaac3a61e2b6628d38aff3 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Wed, 24 Jun 2015 11:50:02 -0400 Subject: [PATCH] [system_tracking] Do not use time for selecting fact versions --- .../js/system-tracking/data-services/fact-scan-data.service.js | 2 +- awx/ui/static/js/system-tracking/search-date-range.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js b/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js index 9805dfdf2d..a3b93507e3 100644 --- a/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js +++ b/awx/ui/static/js/system-tracking/data-services/fact-scan-data.service.js @@ -9,7 +9,7 @@ function (Rest, GetBasePath, ProcessErrors, _) { function buildUrl (host_id, module, startDate, endDate) { var url = GetBasePath('hosts') + host_id + '/fact_versions/', - params= [["module", module] , ['from', startDate.format()], ['to', endDate.format()]]; + params= [["module", module] , ['from', startDate.format('YYYY-MM-DD')], ['to', endDate.format('YYYY-MM-DD')]]; params = params.filter(function(p){ return !_.isEmpty(p[1]); diff --git a/awx/ui/static/js/system-tracking/search-date-range.js b/awx/ui/static/js/system-tracking/search-date-range.js index fa2aa72855..52f3c3837a 100644 --- a/awx/ui/static/js/system-tracking/search-date-range.js +++ b/awx/ui/static/js/system-tracking/search-date-range.js @@ -23,6 +23,6 @@ export function searchDateRange(dateString) { return { from: date.clone().startOf('day'), - to: date.clone().endOf('day') + to: date.clone().add(1, 'day').startOf('day') }; }