Skip to content

Commit

Permalink
feat(changeLog): add Location
Browse files Browse the repository at this point in the history
add Location

Signed-off-by: mritd <[email protected]>
  • Loading branch information
mritd committed Sep 11, 2018
1 parent 505401c commit 5933ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/gcrsync/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func (g *Gcr) Commit(images []string) {
utils.CheckAndExit(err)
defer chgLog.Close()

updateInfo := fmt.Sprintf("### %s Update:\n\n", time.Now().Format("2006-01-02 15:04:05"))
loc, _ := time.LoadLocation("Asia/Shanghai")
updateInfo := fmt.Sprintf("### %s Update:\n\n", time.Now().In(loc).Format("2006-01-02 15:04:05"))
for _, imageName := range images {
updateInfo += "- " + fmt.Sprintf(GcrRegistryTpl, g.NameSpace, imageName) + "\n"
}
Expand Down

0 comments on commit 5933ac3

Please sign in to comment.