aboutsummaryrefslogtreecommitdiff
path: root/userapi/internal/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'userapi/internal/api.go')
-rw-r--r--userapi/internal/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/internal/api.go b/userapi/internal/api.go
index 206c6f7d..6a16ea68 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 = gomatrixserverlib.AsTimestamp(time.Now())
+ req.Pusher.PushKeyTS = int64(time.Now().Second())
}
return a.DB.UpsertPusher(ctx, req.Pusher, req.Localpart)
}