From f94c1b3943ebc4249e6240855c5414f735e8b25f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 14 Dec 2017 07:45:31 +0800 Subject: Improvements for supporting UI Location (#3146) * improvements for supporting UI Location * improved the comment --- routers/api/v1/convert/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers') 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. } } -- cgit v1.2.3