Skip to content

Commit

Permalink
Use unix not second
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Apr 19, 2022
1 parent 85b1631 commit 0739726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userapi/internal/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ func (a *UserInternalAPI) PerformPusherSet(ctx context.Context, req *api.Perform
return a.DB.RemovePusher(ctx, req.Pusher.AppID, req.Pusher.PushKey, req.Localpart)
}
if req.Pusher.PushKeyTS == 0 {
req.Pusher.PushKeyTS = int64(time.Now().Second())
req.Pusher.PushKeyTS = int64(time.Now().Unix())
}
return a.DB.UpsertPusher(ctx, req.Pusher, req.Localpart)
}
Expand Down

0 comments on commit 0739726

Please sign in to comment.