Make start and end time match Power Video for all searches

- only happens if no start and end time are set during init of the calendar element
disk-divisor
Moe 2022-11-07 16:18:35 -08:00
parent 79a7905a4f
commit be419be57d
1 changed files with 2 additions and 2 deletions

View File

@ -944,8 +944,8 @@ function getSelectedTime(dateSelector){
}
function loadDateRangePicker(dateSelector,options){
dateSelector.daterangepicker(Object.assign({
startDate: moment().utc().subtract(2, 'days'),
endDate: moment().utc(),
startDate: moment().subtract(moment.duration("24:00:00")),
endDate: moment().add(moment.duration("24:00:00")),
timePicker: true,
locale: {
format: 'YYYY/MM/DD hh:mm:ss A'