aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/serv.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-12-14 07:45:31 +0800
committerGitHub <noreply@github.com>2017-12-14 07:45:31 +0800
commitf94c1b3943ebc4249e6240855c5414f735e8b25f (patch)
tree720895df7e78cd95e3803929332485b5619b611e /cmd/serv.go
parentb6d2243ac056be7997ef8d14be505873ce34a47e (diff)
downloadgitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.tar.gz
gitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.zip
Improvements for supporting UI Location (#3146)
* improvements for supporting UI Location * improved the comment
Diffstat (limited to 'cmd/serv.go')
-rw-r--r--cmd/serv.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/serv.go b/cmd/serv.go
index 1ff296d007..d7fe6c6630 100644
--- a/cmd/serv.go
+++ b/cmd/serv.go
@@ -18,6 +18,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/private"
"code.gitea.io/gitea/modules/setting"
+ "code.gitea.io/gitea/modules/util"
"github.com/Unknwon/com"
"github.com/dgrijalva/jwt-go"
@@ -219,8 +220,8 @@ func runServ(c *cli.Context) error {
fail("Internal error", "GetDeployKey: %v", err)
}
- deployKey.Updated = time.Now()
- if err = models.UpdateDeployKey(deployKey); err != nil {
+ deployKey.UpdatedUnix = util.TimeStampNow()
+ if err = models.UpdateDeployKeyCols(deployKey, "updated_unix"); err != nil {
fail("Internal error", "UpdateDeployKey: %v", err)
}
} else {