src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

Fix date reading #1291

Open zeripath opened 4 years ago

zeripath commented 4 years ago

In the British TZ the following time:

1579639200 +0100

will be erroneously parsed as being with the GMT TZ. This leads to multiple errors with GPG validation.

This PR fixes this by using the provided TZ information to create a FixedZone and sets that as the TZ

lafriks commented 4 years ago

Tests need to be fixed

zeripath commented 4 years ago

Sigh. Let me just drop the name.

zeripath commented 4 years ago

CI has been placated

mcuadros commented 4 years ago

Merged at https://github.com/go-git/go-git/pull/2