diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-14 07:45:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 07:45:31 +0800 |
commit | f94c1b3943ebc4249e6240855c5414f735e8b25f (patch) | |
tree | 720895df7e78cd95e3803929332485b5619b611e /routers/api/v1/convert | |
parent | b6d2243ac056be7997ef8d14be505873ce34a47e (diff) | |
download | gitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.tar.gz gitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.zip |
Improvements for supporting UI Location (#3146)
* improvements for supporting UI Location
* improved the comment
Diffstat (limited to 'routers/api/v1/convert')
-rw-r--r-- | routers/api/v1/convert/convert.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/convert/convert.go b/routers/api/v1/convert/convert.go index 1bfd7f1ff0..e24ac0518c 100644 --- a/routers/api/v1/convert/convert.go +++ b/routers/api/v1/convert/convert.go @@ -164,7 +164,7 @@ func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey { Key: key.Content, URL: apiLink + com.ToStr(key.ID), Title: key.Name, - Created: key.Created, + Created: key.CreatedUnix.AsTime(), ReadOnly: true, // All deploy keys are read-only. } } |