diff --git a/apistructs/issue.go b/apistructs/issue.go index d74e9606633..a9b38846a2d 100644 --- a/apistructs/issue.go +++ b/apistructs/issue.go @@ -914,6 +914,10 @@ func (m *IssueTime) UnmarshalJSON(data []byte) error { return json.Unmarshal(data, (*time.Time)(m)) } +func (m *IssueTime) MarshalJSON() ([]byte, error) { + return json.Marshal((*time.Time)(m)) +} + func (m *IssueTime) IsEmpty() bool { t := time.Time(*m) return t.IsZero()