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 a bug for fractional weeks caused by strftime() returning a week … #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bburrough
Copy link

…number of zero for days that fall before the first Monday of the year. The impact of the bug was that no commits would be found for that particular week (i.e. '2016-0'). The fix is to use isocalendar(), which lines the weeks/years up such that all weeks are seven days long, irrespective of where they fall relative to the new year.

…number of zero for days that fall before the first Monday of the year. The impact of the bug was that no commits would be found for that particular week (i.e. '2016-0'). The fix is to use isocalendar(), which lines the weeks/years up such that all weeks are seven days long, irrespective of where the fall with respect to the new year.
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.

1 participant