From a4b7a4f2f8acc56a82b29b4fbad7627d71d3d4db Mon Sep 17 00:00:00 2001 From: zeripath Date: Wed, 31 Jul 2019 20:19:47 +0100 Subject: Correct wrong datetime format for git (#7689) --- modules/repofiles/temp_repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/repofiles') diff --git a/modules/repofiles/temp_repo.go b/modules/repofiles/temp_repo.go index ef75709c23..d640ba80b0 100644 --- a/modules/repofiles/temp_repo.go +++ b/modules/repofiles/temp_repo.go @@ -249,7 +249,7 @@ func (t *TemporaryUploadRepository) GetLastCommitByRef(ref string) (string, erro // CommitTree creates a commit from a given tree for the user with provided message func (t *TemporaryUploadRepository) CommitTree(author, committer *models.User, treeHash string, message string) (string, error) { - commitTimeStr := time.Now().Format(time.UnixDate) + commitTimeStr := time.Now().Format(time.RFC3339) authorSig := author.NewGitSig() committerSig := committer.NewGitSig() -- cgit v1.2.3