瀏覽代碼

Use commit time instead of author time for push commits (#4037)

Unknwon 8 年之前
父節點
當前提交
6bfbed0616
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/update.go

+ 1 - 1
models/update.go

@@ -56,7 +56,7 @@ func CommitToPushCommit(commit *git.Commit) *PushCommit {
 		AuthorName:     commit.Author.Name,
 		CommitterEmail: commit.Committer.Email,
 		CommitterName:  commit.Committer.Name,
-		Timestamp:      commit.Author.When,
+		Timestamp:      commit.Committer.When,
 	}
 }