Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWrong timezone on commit #630
Open
Labels
Comments
Even though I didn't reproduce this issue, it certainly something that wasn't tested properly enough and thus is prone to not work correctly. I would appreciate any help with this one, such as a test which reproduces the issue, maybe even alongside a fix :). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This happens when committing via call to repo.index.commit(message). The timezone value is off by 20 minutes. When I issue 'git log', the following shows:
From the bottom, here's how the commits were made:
As you can see, when committed through GitPython, value for timezone is off by 20 minutes. It is an issue with code related to the commit operation. To verify, I added files to the repo using repo.index.add and then committed via 'git commit' on the command line, the timezone was right in this case.
I checked timezone reported by:
Both show the correct timezone, +0530, i.e., India Standard Time.