Adjust custom date selection to include the full end date - iCal export

This commit is contained in:
Nathan Gray 2012-10-04 23:17:04 +00:00
parent b16302e090
commit ed370717ad

View File

@ -38,9 +38,8 @@ class calendar_export_ical extends calendar_export_csv {
if($options['selection']['select'] == 'criteria') { if($options['selection']['select'] == 'criteria') {
$query = array( $query = array(
'start' => $options['selection']['start'], 'start' => $options['selection']['start'],
'end' => $options['selection']['end'], 'end' => strtotime('+1 day',$options['selection']['end'])-1,
'categories' => $options['categories'] ? $options['categories'] : $options['selection']['categories'], 'categories' => $options['categories'] ? $options['categories'] : $options['selection']['categories'],
'enum_recuring' => false,
'daywise' => false, 'daywise' => false,
'users' => $options['selection']['owner'], 'users' => $options['selection']['owner'],
'cfs' => $cfs // Otherwise we shouldn't get any custom fields 'cfs' => $cfs // Otherwise we shouldn't get any custom fields