mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 09:57:52 +01:00
modules/git/signature.go: parse date foramt #663
This commit is contained in:
parent
18c0697329
commit
5e763baa12
@ -42,7 +42,7 @@ func newSignatureFromCommitline(line []byte) (_ *Signature, err error) {
|
|||||||
}
|
}
|
||||||
sig.When = time.Unix(seconds, 0)
|
sig.When = time.Unix(seconds, 0)
|
||||||
} else {
|
} 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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user