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

[master]: Consider leap year #430

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Conversation

ear361
Copy link
Contributor

@ear361 ear361 commented Apr 18, 2024

No description provided.

Comment on lines 52 to 57
if month1 == 2 and ((end_year_pointer % 4 == 0 and end_year_pointer % 100 != 0) or end_year_pointer % 400 == 0):
if day1 > 29:
continue
if month1 == 2 and day1 > 28:
continue
if end_year_pointer == datetime.now().year:
Copy link
Owner

Choose a reason for hiding this comment

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

Wouldn't this still cause an issue as it would hit both?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, code updated.

@kyleskom kyleskom merged commit a76f74d into kyleskom:master Apr 24, 2024
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