From fca2a506d729560bedf3304ee229fb99326d602a Mon Sep 17 00:00:00 2001 From: iamybj Date: Sat, 3 Sep 2016 10:13:53 +0800 Subject: [PATCH] Update update_version.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 跟新时间、构建时间 添加时分秒 --- update_version.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update_version.go b/update_version.go index 797a95d..269b80b 100644 --- a/update_version.go +++ b/update_version.go @@ -28,8 +28,8 @@ func main() { } fmt.Println("build version", version) - fmt.Println(commitTime.Format("2006-01-02")) - fmt.Println(buildTime.Format("2006-01-02")) + fmt.Println(commitTime.Format("2006-01-02 15:04:05")) + fmt.Println(buildTime.Format("2006-01-02 15:04:05")) } // 生成版本文件 @@ -44,8 +44,8 @@ func makeVersionMarkdown(version string, commitTime, buildTime time.Time) string - 构建时间:%s `, version, version, - commitTime.Format("2006-01-02"), - buildTime.Format("2006-01-02"), + commitTime.Format("2006-01-02 15:04:05"), + buildTime.Format("2006-01-02 15:04:05"), ) }