- 修正各平台与拉取订单相关的API的bug

This commit is contained in:
gazebo
2019-07-18 18:35:59 +08:00
parent e29e30604e
commit 061e906d17
8 changed files with 210 additions and 23 deletions

View File

@@ -281,6 +281,11 @@ func Time2TimeStr(t time.Time) string {
return t.Format("15:04:05")
}
func Time2Date(t time.Time) time.Time {
year, month, day := t.Date()
return time.Date(year, month, day, 0, 0, 0, 0, t.Location())
}
func Time2DateStr(t time.Time) string {
return t.Format("2006-01-02")
}