{{if $event->_happening}} {$event->_happening} {{endif}}
{{if $event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )}} all_day}}, {expression="\IPS\calendar\Date::localeTimeFormat( FALSE )"} {{endif}}"> {$event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )->calendarDate()}{{if !$event->all_day}}, {$event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' )->localeTime( FALSE )} {{endif}} {{else}} all_day}} {expression="\IPS\calendar\Date::localeTimeFormat( FALSE )"} {{endif}}"> {$event->lastOccurrence( 'startDate' )->calendarDate()}{{if !$event->all_day}} {$event->lastOccurrence( 'startDate' )->localeTime( FALSE )} {{endif}} {{endif}} {{if $event->_end_date}} {{$sameDay = !( ($event->_start_date->mday != $event->_end_date->mday) or ($event->_start_date->mon != $event->_end_date->mon) or ($event->_start_date->year != $event->_end_date->year) );}} {{if $endDate = $event->nextOccurrence( $event->nextOccurrence( \IPS\calendar\Date::getDate(), 'startDate' ) ?: \IPS\calendar\Date::getDate(), 'endDate' )}} {{if !$sameDay}} all_day}}, {{endif}}"> {$endDate->calendarDate()}{{if !$event->all_day}}, {{endif}} {{endif}} {{if !$event->all_day}} {$endDate->localeTime( FALSE )} {{endif}} {{else}} all_day}} {expression="\IPS\calendar\Date::localeTimeFormat( FALSE )"}{{endif}}"> {$event->lastOccurrence( 'endDate' )->calendarDate()}{{if !$event->all_day}} {$event->lastOccurrence( 'endDate' )->localeTime( FALSE )}{{endif}} {{endif}} {{endif}}