aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private
diff options
context:
space:
mode:
Diffstat (limited to 'routers/private')
-rw-r--r--routers/private/key.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/private/key.go b/routers/private/key.go
index f7212ec892..8c1dbd40f1 100644
--- a/routers/private/key.go
+++ b/routers/private/key.go
@@ -7,7 +7,7 @@ package private
import (
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/util"
+ "code.gitea.io/gitea/modules/timeutil"
macaron "gopkg.in/macaron.v1"
)
@@ -34,7 +34,7 @@ func UpdatePublicKeyInRepo(ctx *macaron.Context) {
})
return
}
- deployKey.UpdatedUnix = util.TimeStampNow()
+ deployKey.UpdatedUnix = timeutil.TimeStampNow()
if err = models.UpdateDeployKeyCols(deployKey, "updated_unix"); err != nil {
ctx.JSON(500, map[string]interface{}{
"err": err.Error(),