UnconditionedLife / smum

SMUM Checkin for Santa Maria Urban Ministries (San Jose, California)
https://www.santamariasj.org
3 stars 0 forks source link

Feature: Validate Next Visit Date with Closed Dates #51

Closed UnconditionedLife closed 6 years ago

UnconditionedLife commented 6 years ago
UnconditionedLife commented 6 years ago

Looks like the best was to create and store the closed dates is not as an array of all closed dates, but a set of 3 nested arrays: 1) single days 2) days of the week (ie. Sunday) 3) days of week and weeks of the month (ie. (2nd Saturday)

@scott-r Does this make sense to you?

scott-r commented 6 years ago

This approach is fine for now, and I will continue to use it as in the existing code. Eventually, we should probably migrate to a library that implements the full complement of recurring date patterns as specified in RFC 5545.