From 9ecc7fb8e1385295b56ba32d0b42b8f9a7ca73c1 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 29 Oct 2018 16:21:57 +0800 Subject: [PATCH] - change datetime format from "2006-01-02 15:04:05" to "2006-1-2 15:4:5" --- utils/typeconv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/typeconv.go b/utils/typeconv.go index 70447a3d..583db932 100644 --- a/utils/typeconv.go +++ b/utils/typeconv.go @@ -210,7 +210,7 @@ func Timestamp2Time(timestamp int64) time.Time { } func Time2Str(t time.Time) string { - return t.Format("2006-01-02 15:04:05") + return t.Format("2006-1-2 15:4:5") } func Str2Time(timeStr string) time.Time {