Merge pull request #424 from josharian/sigdoc

signature: improve Signature.Offset docs
(cherry picked from commit 7197faee79)
This commit is contained in:
Carlos Martín Nieto 2019-01-02 23:13:50 +01:00 committed by lhchavez
parent c74ce46055
commit da10fee49e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func newSignatureFromC(sig *C.git_signature) *Signature {
}
}
// the offset in mintes, which is what git wants
// Offset returns the time zone offset of v.When in minutes, which is what git wants.
func (v *Signature) Offset() int {
_, offset := v.When.Zone()
return offset / 60