Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ISO Year within WEEKLY recurrence handling
When setting the date for an occurrence of a recurring event where the `RRULE` has a frequency of `WEEKLY` and `BYDAY` was used, the `setISODate()` method is used. Unfortunately, I had used `Y` instead of `o` as the date format code for getting the current year, thus feeding the Gregorian year instead of the ISO year into the method. This was causing some year-start/end edge-case errors, as described in #251. Essentially, I was committing the opposite of the error that Twitter is thought to have made in late 2014, as described in this video by Tom Scott: https://www.youtube.com/watch?v=D3jxx8Yyw1c (They should have used Gregorian and were using ISO, we should have been using ISO and were using Gregorian.)
- Loading branch information