Skip to content

Commit 2f5e75e

Browse files
bmoylangmlewis
authored andcommitted
Installation: Use *Timestamp instead of *time.Time (#965)
1 parent 530b7c5 commit 2f5e75e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

github/apps.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type Installation struct {
5757
RepositorySelection *string `json:"repository_selection,omitempty"`
5858
Events []string `json:"events,omitempty"`
5959
Permissions *InstallationPermissions `json:"permissions,omitempty"`
60-
CreatedAt *time.Time `json:"created_at,omitempty"`
61-
UpdatedAt *time.Time `json:"updated_at,omitempty"`
60+
CreatedAt *Timestamp `json:"created_at,omitempty"`
61+
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
6262
}
6363

6464
func (i Installation) String() string {

github/apps_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestAppsService_ListInstallations(t *testing.T) {
9595
t.Errorf("Apps.ListInstallations returned error: %v", err)
9696
}
9797

98-
date := time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)
98+
date := Timestamp{Time: time.Date(2018, time.January, 1, 0, 0, 0, 0, time.UTC)}
9999
want := []*Installation{{
100100
ID: Int64(1),
101101
AppID: Int64(1),

github/github-accessors.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)