Skip to content

Commit be02ca8

Browse files
shuofanerda-bot
authored andcommitted
Fix issue time marshal (erda-project#3515)
1 parent b1d979c commit be02ca8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apistructs/issue.go

+4
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ func (m *IssueTime) UnmarshalJSON(data []byte) error {
914914
return json.Unmarshal(data, (*time.Time)(m))
915915
}
916916

917+
func (m *IssueTime) MarshalJSON() ([]byte, error) {
918+
return json.Marshal((*time.Time)(m))
919+
}
920+
917921
func (m *IssueTime) IsEmpty() bool {
918922
t := time.Time(*m)
919923
return t.IsZero()

0 commit comments

Comments
 (0)