Browse Source

modules/git/signature.go: parse date foramt #663

Unknwon 7 years ago
parent
commit
5e763baa12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/git/signature.go

+ 1 - 1
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
 		}