{%- macro format_event_date(event) -%}
    {% set start_dt = event.start_dt_display.astimezone(event.display_tzinfo) %}
    {% set end_dt = event.end_dt_display.astimezone(event.display_tzinfo) %}
    {% if start_dt.date() == end_dt.date() %}
        {{ start_dt | format_date('long') }}
    {% elif start_dt.year == end_dt.year and start_dt.month == end_dt.month %}
        {{ format_interval(start_dt, end_dt, format='dMMMMy') }}
    {% else %}
        {% trans start=start_dt|format_date('long'), end=end_dt|format_date('long') -%}
            {{ start }} to {{ end }}
        {%- endtrans %}
    {% endif %}
{%- endmacro -%}
