- π¦πΊAustralia mingsong π¦πΊ
The end date could be empty, if it is not a Date range filed.
The patch need to handle all situations (field types).
- π©πͺGermany luenemann SΓΌdbaden, Germany
At a first loot this relates to β¨ Add functionality for all-day events Active .
- π©πͺGermany Rudi Teschner
@mingsong: the empty-end-date-handling has not been altered by my suggestion
// Deal with the end date in the same way as start date above. if (!empty($end_dates[$i])) { if ($end_field_option['type'] === 'timestamp') { $end_date = $end_dates[$i]['value']; $end_date = intval($end_date); $end_date = date(DATE_ATOM, $end_date); } elseif (strpos($end_field_option['type'], 'daterange') !== FALSE) { $end_date = $end_dates[$i]['end_value']; } elseif (strpos($end_field_option['type'], 'datetime') === FALSE) { // This field is not a valid date time field. $end_date = ''; } else { $end_date = $end_dates[$i]['value']; } if (!empty($end_date)) { <-- my changes start after this check $all_day = (strlen($end_date) < 11) ? TRUE : FALSE;
@luenemann: yeah, a little