solspace / craft-calendar

Calendar for Craft: The most reliable and powerful event management plugin for Craft.
http://docs.solspace.com/craft/calendar/v5
Other
15 stars 14 forks source link

Events that repeat weekly are handled differently than Events that repeat on select dates #250

Closed laurabennett closed 5 months ago

laurabennett commented 8 months ago

I would like to display all instances of an event. My template follows the documentation. https://docs.solspace.com/craft/calendar/v4/templates/objects/occurrences/

For weekly event the first occurrence to display includes the start date. For events that only recur on select dates the start date is not included in the query.

specifically the occurenceCache for an event where freq:"WEEKLY" includes an event with the start date and the occurenceCache for an event where freq:"SELECT_DATES" does not include an event with the start date, the first event is the repeats on select date.

Steps to reproduce

  1. Create two events
  2. weekly recurring event (all day)
  3. event with start and two additional dates (all day) ( note the start date is not available to select when choosing select dates)
  4. twig template follows documentation for displaying upcoming recurrences

Expected behavior Upcoming occurrences includes the start date. If I need to query the start date separately then the weekly event should also not include the start date.

Craft & Plugin Info (please complete the following information):

Additional context