github-readme-streak-stats
github-readme-streak-stats copied to clipboard
Shows the next days date
Describe the bug The date displayed in the profile section of the Streak Stats Heroku app is incorrect, showing 8th instead of 7th.
To Reproduce
- Access a profile with a section on the streak stats.
- Observe the incorrect date display.
Expected behavior The date field should display the correct date, i.e. 7th, and count the streak correctly.
Screenshot: Attached for reference.
- OS: windows 10
- Browser chrome
- Version 106.0.5249.119
The stats are all generated on the server where the timezone is constant for all requests (I believe it is UTC). It is possible for it to be Feb 8 in one timezone while it is Feb 7 in your own.
A possible solution for this would be to have a parameter for setting the timezone for dealing with today's date. I feel slightly against doing this since it could be confused with setting the timezone for how contributions are fetched which is not currently possible with the GitHub API as far as I am aware.