Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in by year day #582

Merged
merged 3 commits into from Aug 17, 2022
Merged

Conversation

phil-davis
Copy link
Contributor

This is a rebase of #436

@phil-davis phil-davis self-assigned this Aug 17, 2022
@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #582 (21631cb) into master (86d8c52) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 21631cb differs from pull request most recent head 408b591. Consider uploading reports for the commit 408b591 to get more accurate results

@@            Coverage Diff            @@
##             master     #582   +/-   ##
=========================================
  Coverage     98.35%   98.35%           
  Complexity     1897     1897           
=========================================
  Files            71       71           
  Lines          4549     4550    +1     
=========================================
+ Hits           4474     4475    +1     
  Misses           75       75           
Impacted Files Coverage Δ
lib/Recur/RRuleIterator.php 99.44% <100.00%> (+<0.01%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@phil-davis phil-davis marked this pull request as ready for review August 17, 2022 16:20
Comment on lines +594 to +595
'2020-07-08 14:53:11',
'2020-10-27 14:53:11',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future readers: 202 was a leap year, so day 60 was 29 Feb. In other years, day 60 is 1 Mar. So day 190 and day 301 in a leap year are 2020-07-08 and 2020-10-27 (a day earlier in those months)

This is correct, and so this test (and some other tests) have cases in the output that verify that leap-year counting is happening.

@phil-davis phil-davis merged commit 48d4716 into sabre-io:master Aug 17, 2022
@phil-davis phil-davis deleted the by-year-day-436 branch August 17, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants