diff options
author | Kegan Dougal <kegan@matrix.org> | 2022-04-19 13:57:02 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2022-04-19 13:57:02 +0100 |
commit | 073972646fd38b6987c2b62f8db5500c2f87d2d0 (patch) | |
tree | 725b9b8acafb73fb00266301beb72fd6239c9376 /userapi/internal | |
parent | 85b1631ecfbeaa382c4bd17e7e310e668f5400dd (diff) |
Use unix not second
Diffstat (limited to 'userapi/internal')
-rw-r--r-- | userapi/internal/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/internal/api.go b/userapi/internal/api.go index 6a16ea68..d1c12f05 100644 --- a/userapi/internal/api.go +++ b/userapi/internal/api.go @@ -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) } |