diff --git a/models/issue.go b/models/issue.go index a32741043..00d155a2b 100644 --- a/models/issue.go +++ b/models/issue.go @@ -325,6 +325,10 @@ func (issue *Issue) APIFormat() *api.Issue { Updated: issue.UpdatedUnix.AsTime(), } + if issue.ClosedUnix != 0 { + apiIssue.Closed = issue.ClosedUnix.AsTimePtr() + } + if issue.Milestone != nil { apiIssue.Milestone = issue.Milestone.APIFormat() }