blob: 0a252f68e8f24d81e99e15c855c438677df45be5 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
package signature
import "time"
// When returns a time.Time with the signature's timezone offset.
func (signature Signature) When() time.Time {
loc := time.FixedZone("git", int(signature.OffsetMinutes)*60)
return time.Unix(signature.WhenUnix, 0).In(loc)
}
|