Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix 时间格式化报错
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoo committed Jul 23, 2021
1 parent 9c6ebb0 commit 7c20acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githubManager/hookManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func NewManager(app *iris.Application, bot *Core.Bot) Manager {
case github.PushPayload:
var commitString []string
for _, v1 := range v.Commits {
t, err := time.Parse("2006-01-02T15:04:05-0700", v1.Timestamp)
t, err := time.Parse("2006-01-02T15:04:05-07:00", v1.Timestamp)
if err != nil {
log.Println(err)
commitString = append(commitString, fmt.Sprintf("[%s] %s", v1.Timestamp, v1.Message))
Expand Down

0 comments on commit 7c20acc

Please sign in to comment.