Skip to content

Commit 4b3dd50

Browse files
committed
Fix issue time marshal
1 parent 6a430b4 commit 4b3dd50

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)