swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.4k stars 160 forks source link

RecurrenceRule: Respect leap months #1005

Closed hristost closed 1 week ago

hristost commented 2 weeks ago

This change makes a fix to Calendar.RecurrenceRule with regards to leap months and adds a few tests to verify correctness. When constructing the base sequence, we include isLeapMonth of the start date in the date components. Before, start dates falling on a leap month would have been treated the same as dates which do fall on the non-leap month before.

hristost commented 2 weeks ago

@swift-ci please run

hristost commented 2 weeks ago

@swift-ci please test

hristost commented 2 weeks ago

@swift-ci please test