diff --git a/github/apps.go b/github/apps.go index 1ad9a9818fb..80dfb3c8451 100644 --- a/github/apps.go +++ b/github/apps.go @@ -26,8 +26,8 @@ type App struct { Description *string `json:"description,omitempty"` ExternalURL *string `json:"external_url,omitempty"` HTMLURL *string `json:"html_url,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` + CreatedAt *Timestamp `json:"created_at,omitempty"` + UpdatedAt *Timestamp `json:"updated_at,omitempty"` } // InstallationToken represents an installation token. diff --git a/github/github-accessors.go b/github/github-accessors.go index 9129909aee0..baed78bb4a3 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -117,9 +117,9 @@ func (a *APIMeta) GetVerifiablePasswordAuthentication() bool { } // GetCreatedAt returns the CreatedAt field if it's non-nil, zero value otherwise. -func (a *App) GetCreatedAt() time.Time { +func (a *App) GetCreatedAt() Timestamp { if a == nil || a.CreatedAt == nil { - return time.Time{} + return Timestamp{} } return *a.CreatedAt } @@ -181,9 +181,9 @@ func (a *App) GetOwner() *User { } // GetUpdatedAt returns the UpdatedAt field if it's non-nil, zero value otherwise. -func (a *App) GetUpdatedAt() time.Time { +func (a *App) GetUpdatedAt() Timestamp { if a == nil || a.UpdatedAt == nil { - return time.Time{} + return Timestamp{} } return *a.UpdatedAt }