From af3619603c6c60cb3b162ff29996e7b4401d1bdd Mon Sep 17 00:00:00 2001 From: richardlt Date: Tue, 26 Feb 2019 10:04:28 +0100 Subject: [PATCH] fix(vcs): problem with commit date --- engine/vcs/gitlab/client_commit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/vcs/gitlab/client_commit.go b/engine/vcs/gitlab/client_commit.go index 34a4d26794..658de20387 100644 --- a/engine/vcs/gitlab/client_commit.go +++ b/engine/vcs/gitlab/client_commit.go @@ -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, } } @@ -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 @@ -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, } }