mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-30 03:16:36 +08:00
refactor: code review
This commit is contained in:
@@ -2,6 +2,8 @@ package timex
|
||||
|
||||
import "time"
|
||||
|
||||
const DefaultDateTimeFormat = "2006-01-02 15:04:05"
|
||||
|
||||
func DefaultFormat(time time.Time) string {
|
||||
return time.Format("2006-01-02 15:04:05")
|
||||
return time.Format(DefaultDateTimeFormat)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user