DenverCoder1 / github-readme-streak-stats

🔥 Stay motivated and show off your contribution streak! 🌟 Display your total contributions, current streak, and longest streak on your GitHub profile README
https://streak-stats.demolab.com
MIT License
4.82k stars 750 forks source link

Streak is reset when it shouldn't #289

Closed Wjplatformer closed 2 years ago

Wjplatformer commented 2 years ago

Describe the bug Although I currently have a 10 commit streak, the Stats reset to 1 for my current streak.

To Reproduce

  1. Go to https://github.com/Wjplatformer
  2. View the main streak and my Contribution graph

None

Expected behavior Have 10 commit streak show up on current streak.

Screenshots image image

Desktop (please complete the following information):

Smartphone (please complete the following information): None

DenverCoder1 commented 2 years ago

There is nothing that can be done about this. According to the GitHub API, you have no contributions on July 28 and the stats are displayed exactly how they are received from the API.

Contribution dates are timezone-dependent, so it is possible for your browser to show it differently than the official API.

You can possibly try self-hosting with your own personal access token to see if it accounts for the timezone difference.

I will close this for now as nothing I can do about this unless GitHub makes changes to their API.

Wjplatformer commented 2 years ago

Thanks. Might be due to the fact that I made commits late into the night as I am living in Asia, which would count as being "tomorrow" in America or something.

DenverCoder1 commented 2 years ago

I mentioned the issue to GitHub Support and they told me "all timestamps are in UTC and this is the expected behavior". If the ability to switch the timezone ever becomes possible, I will be sure to implement it, but for now it seems it is not.

You could always change the dates of commits to fill in the gaps if you think it should count when it didn't, but besides that I can't think of anything.

Wjplatformer commented 2 years ago

Thanks :)