- change datetime format from "2006-01-02 15:04:05" to "2006-1-2 15:4:5"
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user