|
@@ 864-867 (lines=4) @@
|
| 861 |
|
$startDateFormat = ( isset( $start['hour'] )) ? 'Y-m-d H:i:s' : 'Y-m-d'; |
| 862 |
|
/* get end date from dtend/due/duration properties */ |
| 863 |
|
$end = $component->getProperty( 'dtend' ); |
| 864 |
|
if( !empty( $end )) { |
| 865 |
|
$dtendExist = TRUE; |
| 866 |
|
$endDateFormat = ( isset( $end['hour'] )) ? 'Y-m-d H:i:s' : 'Y-m-d'; |
| 867 |
|
} |
| 868 |
|
// if( !empty($end)) echo 'selectComp 1 start='.implode('-',$start).' end='.implode('-',$end)."<br />\n"; // test ### |
| 869 |
|
if( empty($end) && ( $component->objName == 'vtodo' )) { |
| 870 |
|
$end = $component->getProperty( 'due' ); |
|
@@ 871-874 (lines=4) @@
|
| 868 |
|
// if( !empty($end)) echo 'selectComp 1 start='.implode('-',$start).' end='.implode('-',$end)."<br />\n"; // test ### |
| 869 |
|
if( empty($end) && ( $component->objName == 'vtodo' )) { |
| 870 |
|
$end = $component->getProperty( 'due' ); |
| 871 |
|
if( !empty( $end )) { |
| 872 |
|
$dueExist = TRUE; |
| 873 |
|
$endDateFormat = ( isset( $end['hour'] )) ? 'Y-m-d H:i:s' : 'Y-m-d'; |
| 874 |
|
} |
| 875 |
|
// if( !empty($end)) echo 'selectComp 2 start='.implode('-',$start).' end='.implode('-',$end)."<br />\n"; // test ### |
| 876 |
|
} |
| 877 |
|
if( !empty( $end ) && !isset( $end['hour'] )) { |