Skip to content

Commit

Permalink
set timestamp correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla committed Aug 16, 2019
1 parent c4a0235 commit cc68d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/proto/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func (s *SignS) Copy() *SignS {
}

// SetTimestamp sets the timestamp.
func (s *SignS) SetTimestamp(now time.Time) {
s.Timestamp = util.TimeToSecs(time.Now())
func (s *SignS) SetTimestamp(ts time.Time) {
s.Timestamp = util.TimeToSecs(ts)
}

// Time returns the timestamp. If the receiver is nil, the zero value is returned.
Expand Down

0 comments on commit cc68d66

Please sign in to comment.