Offset returns the time zone offset of v.When in minutes, which is what git wants.
()
| 32 | |
| 33 | // Offset returns the time zone offset of v.When in minutes, which is what git wants. |
| 34 | func (v *Signature) Offset() int { |
| 35 | _, offset := v.When.Zone() |
| 36 | return offset / 60 |
| 37 | } |
| 38 | |
| 39 | func (sig *Signature) toC() (*C.git_signature, error) { |
| 40 | if sig == nil { |