[GITRPC] Fix bug in commiter date for `Commit` API (#780)

rkapoor10-patch-1
Johannes Batzill 2023-11-08 05:58:36 +00:00 committed by Harness
parent e838254409
commit d0d21214d4
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (s *CommitFilesService) CommitFiles(stream rpc.CommitFilesService_CommitFil
committer = header.GetCommitter()
}
committerDate := time.Now().UTC()
if header.GetAuthorDate() != 0 {
if header.GetCommitterDate() != 0 {
committerDate = time.Unix(header.GetCommitterDate(), 0)
}