Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
fix: properly floor the partial results inDateDayDifference
#1629
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedMar 4, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #1629 +/- ##==========================================+ Coverage 83.89% 83.91% +0.01%========================================== Files 377 377 Lines 19736 19733 -3 Branches 2916 2919 +3 ==========================================+ Hits 16558 16559 +1+ Misses 3178 3174 -4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks. BTW,CheckDayAndMonth
should ideally compute how many days a month has (based on the year) and check against that (you don't need to do this though).
A function like |
Describe your change:
Currently
DateDayDifference('29/02/2024', '04/03/2024')
gives5
. This PR fixes that. Further more:the errors now arethrown,
the tests are reorganized; edited test cases were verified with the page linked in the docs,
some minor refactoring was done.
Add an algorithm?
Fix a bug or typo in an existing algorithm?
Documentation change?
Checklist:
Example:
UserProfile.js
is allowed butuserprofile.js
,Userprofile.js
,user-Profile.js
,userProfile.js
are notFixes: #{$ISSUE_NO}
.