From ec96f1d8a5cbaf49d7b0f58e339c312eef2aaeb7 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Wed, 8 Jul 2015 10:54:22 -0400 Subject: [PATCH] [system_tracking] Query fact versions relative to user's midnight, not server's --- .../js/system-tracking/data-services/fact-scan-data.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a3b93507e3..9805dfdf2d 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('YYYY-MM-DD')], ['to', endDate.format('YYYY-MM-DD')]]; + params= [["module", module] , ['from', startDate.format()], ['to', endDate.format()]]; params = params.filter(function(p){ return !_.isEmpty(p[1]);