File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11package github
22
33import (
4+ "time"
5+
46 "github.com/google/go-github/v82/github"
57)
68
@@ -197,16 +199,16 @@ func convertToMinimalPullRequest(pr *github.PullRequest) MinimalPullRequest {
197199 }
198200
199201 if pr .CreatedAt != nil {
200- m .CreatedAt = pr .CreatedAt .Format ("2006-01-02T15:04:05Z" )
202+ m .CreatedAt = pr .CreatedAt .Format (time . RFC3339 )
201203 }
202204 if pr .UpdatedAt != nil {
203- m .UpdatedAt = pr .UpdatedAt .Format ("2006-01-02T15:04:05Z" )
205+ m .UpdatedAt = pr .UpdatedAt .Format (time . RFC3339 )
204206 }
205207 if pr .ClosedAt != nil {
206- m .ClosedAt = pr .ClosedAt .Format ("2006-01-02T15:04:05Z" )
208+ m .ClosedAt = pr .ClosedAt .Format (time . RFC3339 )
207209 }
208210 if pr .MergedAt != nil {
209- m .MergedAt = pr .MergedAt .Format ("2006-01-02T15:04:05Z" )
211+ m .MergedAt = pr .MergedAt .Format (time . RFC3339 )
210212 }
211213
212214 for _ , label := range pr .Labels {
You can’t perform that action at this time.
0 commit comments