Skip to content

Commit

Permalink
go time format must use 2006-01-02 15:04:05
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey777210 committed May 24, 2020
1 parent 42c9270 commit d8d6828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Container struct {
func NewContainer(containerName string) *Container {
//随机数生成containerID
id := randStringBytes(10)
createTime := time.Now().Format("2006-01-02 21:01:05")
createTime := time.Now().Format("2006-01-02 15:04:05")

if containerName == "" {
containerName = id
Expand Down

0 comments on commit d8d6828

Please sign in to comment.