Skip to content

Commit

Permalink
Installation: Use *Timestamp instead of *time.Time (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoylan authored and gmlewis committed Aug 6, 2018
1 parent 530b7c5 commit 2f5e75e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions github/apps.go
Expand Up @@ -57,8 +57,8 @@ type Installation struct {
RepositorySelection *string `json:"repository_selection,omitempty"`
Events []string `json:"events,omitempty"`
Permissions *InstallationPermissions `json:"permissions,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"`
}

func (i Installation) String() string {
Expand Down
2 changes: 1 addition & 1 deletion github/apps_test.go
Expand Up @@ -95,7 +95,7 @@ func TestAppsService_ListInstallations(t *testing.T) {
t.Errorf("Apps.ListInstallations returned error: %v", err)
}

date := time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)
date := Timestamp{Time: time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}
want := []*Installation{{
ID: Int64(1),
AppID: Int64(1),
Expand Down
8 changes: 4 additions & 4 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f5e75e

Please sign in to comment.