From 701a1729bb63aafaf99011cc254392f1396b27f0 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 6 Oct 2023 15:58:07 +0800 Subject: [PATCH] update --- .../svc/enterprise_manage/svc_central_kitchen_for_school.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go index 390e613..0812367 100644 --- a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go @@ -752,8 +752,8 @@ func CentralKitchenForSchoolReserveList(req md.CentralKitchenForSchoolReserveLis var months []time.Month if req.StartDate != "" { - sDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.StartDate, time.Local) - eDate, _ := time.ParseInLocation("2006-01-02 15:04:05", req.EndDate, time.Local) + sDate, _ := time.ParseInLocation("2006-01-02", req.StartDate, time.Local) + eDate, _ := time.ParseInLocation("2006-01-02", req.EndDate, time.Local) _, sMonth, _ := sDate.Date() _, eMonth, _ := eDate.Date() diffMonth := sMonth - eMonth