mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
[system_tracking] Do not use time for selecting fact versions
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()], ['to', endDate.format()]];
|
params= [["module", module] , ['from', startDate.format('YYYY-MM-DD')], ['to', endDate.format('YYYY-MM-DD')]];
|
||||||
|
|
||||||
params = params.filter(function(p){
|
params = params.filter(function(p){
|
||||||
return !_.isEmpty(p[1]);
|
return !_.isEmpty(p[1]);
|
||||||
|
|||||||
@@ -23,6 +23,6 @@ export function searchDateRange(dateString) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
from: date.clone().startOf('day'),
|
from: date.clone().startOf('day'),
|
||||||
to: date.clone().endOf('day')
|
to: date.clone().add(1, 'day').startOf('day')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user