shithub: furgit

ref: a902f6849d938a51fa34dc292f5c81d26c4b6c36
dir: /object/signature/when.go/

View raw version
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)
}