Skip to content

Commit

Permalink
fix(vcs): problem with commit date
Browse files Browse the repository at this point in the history
  • Loading branch information
richardlt committed Feb 26, 2019
1 parent 7a98cf1 commit af36196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/vcs/gitlab/client_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (c *gitlabClient) Commits(ctx context.Context, repo, branch, since, until s
DisplayName: c.AuthorName,
Email: c.AuthorEmail,
},
Timestamp: c.AuthoredDate.Unix(),
Timestamp: c.AuthoredDate.Unix() * 1000,
Message: c.Message,
}
}
Expand All @@ -68,7 +68,7 @@ func (c *gitlabClient) Commit(ctx context.Context, repo, hash string) (sdk.VCSCo
DisplayName: gc.AuthorName,
Email: gc.AuthorEmail,
}
commit.Timestamp = gc.AuthoredDate.Unix()
commit.Timestamp = gc.AuthoredDate.Unix() * 1000
commit.Message = gc.Message

return commit, nil
Expand Down Expand Up @@ -98,7 +98,7 @@ func (c *gitlabClient) CommitsBetweenRefs(ctx context.Context, repo, base, head
DisplayName: c.AuthorName,
Email: c.AuthorEmail,
},
Timestamp: c.AuthoredDate.Unix(),
Timestamp: c.AuthoredDate.Unix() * 1000,
Message: c.Message,
}
}
Expand Down

0 comments on commit af36196

Please sign in to comment.