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

Fixes start_of_month calculation #11

Merged
merged 1 commit into from
Dec 14, 2021
Merged

Fixes start_of_month calculation #11

merged 1 commit into from
Dec 14, 2021

Conversation

jontsai
Copy link
Member

@jontsai jontsai commented Dec 14, 2021

Fixes start_of_month by simply using 1, instead of calendar.monthrange[0],
which was erroneously setting it to the week-day of the first day of the month

Closes #8

…hrange[0]`,

which was erroneously setting it to the [week-day of the first day of the month](https://docs.python.org/3/library/calendar.html#calendar.monthrange)
@jontsai jontsai merged commit 05a054a into master Dec 14, 2021
@jontsai jontsai deleted the bugfix/start-of-month branch December 14, 2021 03:15
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.

ValueError: day is out of range for month
1 participant