mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-21 15:31:48 -05:00
[system_tracking] Query fact versions relative to user's midnight, not server's
This commit is contained in:
@@ -9,7 +9,7 @@ function (Rest, GetBasePath, ProcessErrors, _) {
|
|||||||
|
|
||||||
function buildUrl (host_id, module, startDate, endDate) {
|
function buildUrl (host_id, module, startDate, endDate) {
|
||||||
var url = GetBasePath('hosts') + host_id + '/fact_versions/',
|
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){
|
params = params.filter(function(p){
|
||||||
return !_.isEmpty(p[1]);
|
return !_.isEmpty(p[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user