Filter: include msec in formatter date comparison. See #1191

Use "11:59:59.999" instead of "11:59:59"
This commit is contained in:
Rob Garrison 2016-04-20 07:03:46 -05:00
parent 93515e05cd
commit c0d4960a48
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -519,10 +519,10 @@
$date.datepicker('setDate', (getdate === '' ? '' : getdate) || null);
if (getdate === '') { notrigger = false; }
date = $date.datepicker('getDate');
query = date ? ( o.endOfDay && /<=/.test(compare) ? date.setHours(23, 59, 59) : date.getTime() ) || '' : '';
query = date ? ( o.endOfDay && /<=/.test(compare) ? date.setHours(23, 59, 59, 999) : date.getTime() ) || '' : '';
if (date && o.endOfDay && compare === '=') {
compare = '';
query += ' - ' + date.setHours(23, 59, 59);
query += ' - ' + date.setHours(23, 59, 59, 999);
notrigger = false;
}
$cell.find('.dateCompare')
@ -670,7 +670,7 @@
from = $cell.find('.dateFrom').datepicker('getDate'),
to = $cell.find('.dateTo').datepicker('getDate');
from = validDate(from) ? from.getTime() : '';
to = validDate(to) ? ( o.endOfDay ? to.setHours(23, 59, 59) : to.getTime() ) || '' : '';
to = validDate(to) ? ( o.endOfDay ? to.setHours(23, 59, 59, 999) : to.getTime() ) || '' : '';
range = from ? ( to ? from + ' - ' + to : '>=' + from ) : (to ? '<=' + to : '');
$cell.add( $shcell )
.find('.dateRange').val(range)