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/git/repo_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git/repo_tree.go') diff --git a/modules/git/repo_tree.go b/modules/git/repo_tree.go index ddc398d0b2..4b9e61f264 100644 --- a/modules/git/repo_tree.go +++ b/modules/git/repo_tree.go @@ -61,7 +61,7 @@ type CommitTreeOpts struct { // CommitTree creates a commit from a given tree id for the user with provided message func (repo *Repository) CommitTree(sig *Signature, tree *Tree, opts CommitTreeOpts) (SHA1, error) { - commitTimeStr := time.Now().Format(time.UnixDate) + commitTimeStr := time.Now().Format(time.RFC3339) // Because this may call hooks we should pass in the environment env := append(os.Environ(), -- cgit v1.2.3