Whenever I make a comment/issue or commit. The time is off by 10 hours. I believe it is a timezone issue.
Is there a way to change my timezone for my github account?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityWhenever I make a comment/issue or commit. The time is off by 10 hours. I believe it is a timezone issue.
Is there a way to change my timezone for my github account?
Unfortunately there is no such option. However, Github displays most dates in a relative style anyway - and that's based on your system time so those values are correct.
Since March, 2014 you can, by using Github's commit API to specify the exact timestamp for your commit.
To see the the format refer to the developer's documentation.
Or you can set the timezone by passing it in headers while making the post request in a commit. like
curl -H "Time-Zone: Europe/Amsterdam" -X POST https://api.github.com/repos/github/linguist/contents/new_file.md
So what I did was I changed my computers system date/time (I use Lubuntu Linux by the way).
Here's the steps I followed:
Result: Instead of GitHub showing 9/30/19 in the heatmap, it showed 9/29/19.
Have fun!