aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-03-06 18:27:20 -0500
committerUnknwon <u@gogs.io>2015-03-06 18:27:20 -0500
commit5e763baa12e346f8eb577073399068802fa5d67a (patch)
tree82a8ae8343ab80f0cf0cd7450fc241440bb98bcc /modules/git
parent18c06973292a3d20b8ad72575c819fbe3287a9ad (diff)
downloadgitea-5e763baa12e346f8eb577073399068802fa5d67a.tar.gz
gitea-5e763baa12e346f8eb577073399068802fa5d67a.zip
modules/git/signature.go: parse date foramt #663
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/signature.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/signature.go b/modules/git/signature.go
index ad9c1b39b7..b77f7a4492 100644
--- a/modules/git/signature.go
+++ b/modules/git/signature.go
@@ -42,7 +42,7 @@ func newSignatureFromCommitline(line []byte) (_ *Signature, err error) {
}
sig.When = time.Unix(seconds, 0)
} else {
- sig.When, err = time.Parse(time.RFC1123Z, string(line[emailstop+2:]))
+ sig.When, err = time.Parse("Mon Jan _2 15:04:05 2006 -0700", string(line[emailstop+2:]))
if err != nil {
return nil, err
}