diff --git a/github/payload.go b/github/payload.go index 35de4be..fae98be 100644 --- a/github/payload.go +++ b/github/payload.go @@ -3023,9 +3023,9 @@ type ProjectCardPayload struct { Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"creator"` - CreatedAt int64 `json:"created_at"` - UpdatedAt int64 `json:"updated_at"` - ContentURL string `json:"content_url"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + ContentURL string `json:"content_url"` } `json:"project_card"` Repository struct { ID int64 `json:"id"` diff --git a/testdata/github/project-card.json b/testdata/github/project-card.json index 1c3608f..d4266d8 100644 --- a/testdata/github/project-card.json +++ b/testdata/github/project-card.json @@ -26,8 +26,8 @@ "type": "User", "site_admin": false }, - "created_at": 1483569391, - "updated_at": 1483569391, + "created_at": "2021-04-22T14:38:41Z", + "updated_at": "2021-04-22T14:38:41Z", "content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2" }, "repository": { @@ -146,4 +146,4 @@ "type": "User", "site_admin": false } -} \ No newline at end of file +}