aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_tree.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-07-31 20:19:47 +0100
committertechknowlogick <techknowlogick@gitea.io>2019-07-31 15:19:47 -0400
commita4b7a4f2f8acc56a82b29b4fbad7627d71d3d4db (patch)
tree55332bf4cc7180bf6c6cb3e343c00bca8ea9beb2 /modules/git/repo_tree.go
parenta9b4c8171f3b62a951079cdca67e4cf703eb4cc1 (diff)
downloadgitea-a4b7a4f2f8acc56a82b29b4fbad7627d71d3d4db.tar.gz
gitea-a4b7a4f2f8acc56a82b29b4fbad7627d71d3d4db.zip
Correct wrong datetime format for git (#7689)
Diffstat (limited to 'modules/git/repo_tree.go')
-rw-r--r--modules/git/repo_tree.go2
1 files changed, 1 insertions, 1 deletions
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(),