Skip to content

After Query doesn't return multi-day events in the past #72

@laurabennett

Description

@laurabennett

Similar to the problem with upcoming but slightly different.

I have an event for July 2-4, 2021 (now in the past) and another event July 23 - Aug 1. Plus a number of single day recurring events that seem to work as expected.

If I query for events after July 1, the future multi-day event displays but the July 2-4 event does not.
If I query for events between July 1 and July 30 both events display as expected.

{% if endDate is not empty %}
{% set events = craft.calendarize.between(startDate, endDate, {
section: ['events']
}, order, unique) %}
{% else %}
{% set events = craft.calendarize.after(startDate, {
section: ['events']
}, order, unique) %}
{% endif %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions